Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxServerModeCustomDataSource.PopulateFields(TStrings) Method

Obtains the names of fields available in the data source.

#Declaration

Delphi
procedure PopulateFields(AList: TStrings);

#Parameters

Name Type
AList TStrings

#Remarks

By default, all the fields contained in the target source of data (a table or a query‘s result set) are available in the data source. You can populate and customize the field list at design time via the IDE’s Fields Editor accessible via the data source component’s context menu. The PopulateFields method clears AList and populates it with field names from the list.

You can call the PopulateFields method to obtain valid values for the KeyFieldNames property.

Note

The PopulateFields method populates AList with the names of the fields referenced by the Fields list. In table-based server mode data sources, if this list is empty, the target table‘s schema is used to retrieve field names to AList.

See Also