RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInternalSQLDataSet.SortFieldNames Property

Indicates the sort order when CommandType is ctTable.

Pascal
property SortFieldNames: WideString;
C++
__property BSTR SortFieldNames;

Use SortFieldNames to specify the fields that should be used to order the records in the dataset. SortFieldNames is only used when CommandType is ctTable. 

SortFieldNames is a semicolon-delimited list of field names. These names are used to generate the ORDER BY clause of the SQL statement the dataset creates to fetch data from a server table. Records are sorted by the first named field, and within that sort order, by the second named field, and so on. 

 

CommandType 

Representing the Records in a Table 

Specifying the Data to Display using TSQLDataSet

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!