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

TcxGridTableController.SelectedRows Property

Provides indexed access to selected rows within the current View.

#Declaration

Delphi
property SelectedRows[Index: Integer]: TcxCustomGridRow read;

#Property Value

Type
TcxCustomGridRow

#Remarks

Use the SelectedRows property to access selected rows within the current View when the grid is in default mode (GridMode is False).

Records within a (Banded) Table View are represented as rows. SelectedRows is just a wrapper for the SelectedRecords property which returns TcxCustomGridRecord objects. The SelectedRows property casts an object returned by SelectedRecords to TcxCustomGridRow class. So the difference between these properties is the type of objects returned.

Refer to the SelectedRecords for details on selected rows.

See Also