Skip to main content

TcxCustomGridTableController.SelectedRecords Property

Provides indexed access to selected records.

Declaration

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