Skip to main content

TcxDataControllerOptions Type

A set of flags that correspond to data controller behavior options.

Declaration

TcxDataControllerOptions = set of TcxDataControllerOption;

Referenced Class

Type Description
TcxDataControllerOption

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

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