TcxDataControllerOptions Type
In This Article
A set of flags that correspond to data controller behavior options.
#Declaration
Delphi
TcxDataControllerOptions = set of TcxDataControllerOption;
#Referenced Class
Type | Description |
---|---|
Tcx |
A flag that corresponds to an individual data controller behavior flag. |
#Remarks
Use TcxDataControllerOptions
values to configure the behavior of a data controller.
#Code Example: Focus the Top Row after Sorting
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;
Alternatively, you can move focus to the first record in an OnSortingChanged event handler.
#Direct TcxDataControllerOptions Type Reference
The TcxCustomDataController.Options property references the TcxDataControllerOptions
type.
See Also