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

TcxCustomGridTableController.SelectedRecords Property

Provides indexed access to selected records.

#Declaration

Delphi
property SelectedRecords[Index: Integer]: TcxCustomGridRecord read;

#Property Value

Type
TcxCustomGridRecord

#Remarks

Use the SelectedRecords property to obtain selected records when GridMode is not applied.

When GridMode is applied to a data-aware View, you can get selected records via the View’s DataController.GetSelectedBookmark function. This returns a TBookmarkStr object which can be used in the dataset’s GotoBookmark method, for instance.

The number of records is defined by the SelectedRecordCount property.

To enable a user to select multiple records, set the View’s OptionsSelection.MultiSelect property to True. The Focused/Selected Records section gives you more information relating to this topic.

See Also