Skip to main content

TcxDBDataController.DataSource Property

Specifies a data source which is linked to a dataset to be bound to the grid control.

Declaration

property DataSource: TDataSource read; write;

Property Value

Type
TDataSource

Remarks

Use this property to specify the data source component from which data is retrieved by the data controller in order to display within your grid control.

Note

If you are not using grid mode, you can improve performance when accessing data via a FireDAC table object TADTable or TFDTable) linked to the specified DataSource component by disabling the [Live Data Window (LDW) mode](https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Browsing_Tables_(FireDAC). To accomplish this, set the FireDAC table object’s FetchOptions.CursorKind property to ckDefault. Refer to the “Browsing Table” article at https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Browsing_Tables_(FireDAC) for details on this mode.

See Also