Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxDataControllerOptions Type

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

#Declaration

Delphi
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: 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