Method Reference > Quick Reference for All Methods > RetrieveFieldsFromDataSource Method |
C1Query.RetrieveFieldsFromDataSource
Notes
Method applies to C1Query control.
Arguments
None
Return Value
None
Description
This method is used only in DataSource mode, see Simple Queries - DataSource Mode. It fills the DataSourceFields collection with the fields from the DataSource recordset. The previous contents of the collection is discarded.
You do not always have to call this method in DataSource mode. If the DataSourceFields collection is empty at startup time or on setting the DataSource property, the fields are retrieved from DataSource automatically. You need to cal RetrieveFieldsFromDataSource if you want to retrieve fields and then modify the collection, add, remove or rearrange fields.
See Also
Customizing the DataSourceFields collection