API:Data.SqlExpr.TSQLDataSet.SortFieldNames

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.SqlExpr.pas
Data.SqlExpr.hpp
Unit: Data.SqlExpr
Parent: TSQLDataSet

Delphi

property SortFieldNames;

C++

__property SortFieldNames = {default=0};

Description

Indicates the sort order when CommandType is ctTable.

Data.SqlExpr.TSQLDataSet.SortFieldNames inherits from Data.SqlExpr.TCustomSQLDataSet.SortFieldNames. All content below this line refers to Data.SqlExpr.TCustomSQLDataSet.SortFieldNames.

Indicates the sort order when CommandType is ctTable.

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.

See Also