TcxCustomDBPivotGrid.DataController Property
Provides access to the data controller.
Declaration
property DataController: TcxDBPivotGridDataController read;
Property Value
Type | Description |
---|---|
TcxDBPivotGridDataController | The data controller. |
Remarks
The data controller manages the data flow between the pivot grid’s view and the underlying data source.
For example, when in bound mode developers can use the data controller as an alternative to the TcxCustomPivotGrid.CreateField method and the TcxPivotGridField.Values property, to add an unbound field to the view and populate it with the data.
The TcxDBPivotGrid component provides the design-time capability to easily connect its data controller to a data source located on a form. To accomplish this, invoke the pivot grid’s context menu and select the required data source via the “Link to DataSource” item. If the data source is linked to a dataset, the data controller automatically calls its CreateAllFields method to create pivot grid fields bound to dataset fields. The created pivot grid fields are placed into the filter header area. You can move them to other areas using drag and drop or a field’s Area property.