vcl-cxcustomdata-213bf127.md
A set of flags that correspond to data controller behavior options.
TcxDataControllerOptions = set of TcxDataControllerOption;
| Type | Description |
|---|---|
| TcxDataControllerOption |
A flag that corresponds to an individual data controller behavior flag.
|
Use TcxDataControllerOptions values to configure the behavior of a data controller.
The following code example moves focus to the first record after a sort operation:
var
ADataController: TcxGridDataController;
begin
ADataController := cxGrid1TableView1.DataController;
ADataController.Options := ADataController.Options + [dcoFocusTopRowAfterSorting];
end;
TcxGridDataController *ADataController = cxGrid1TableView1->DataController;
ADataController->Options = TcxDataControllerOptions() << dcoAssignGroupingValues
<< dcoAssignMasterDetailKeys << dcoSaveExpanding << dcoFocusTopRowAfterSorting;
Alternatively, you can move focus to the first record in an OnSortingChanged event handler.
The TcxCustomDataController.Options property references the TcxDataControllerOptions type.
See Also