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.SelectedRecordCount Property

Returns the number of selected records within the View.

#Declaration

Delphi
property SelectedRecordCount: Integer read;

#Property Value

Type
Integer

#Remarks

A grid control allows you to select multiple records within a View if its OptionsSelection.MultiSelect property is set to True.

You can use the SelectedRecordCount property to get the number of selected records.

Access to selected records is implemented differently in grid mode and default mode.

When grid mode 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.

If grid mode is disabled (by default), use the SelectedRecords collection to get selected record objects.

See Also