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

TcxCustomDataController.IsRowSelected(Integer) Method

Returns a value indicating whether a particular row is selected.

#Declaration

Delphi
function IsRowSelected(ARowIndex: Integer): Boolean;

#Parameters

Name Type
ARowIndex Integer

#Returns

Type
Boolean

#Remarks

The IsRowSelected function returns True if the particular row (a data record or a grouping row) is selected. Otherwise, it returns False. The ARowIndex parameter specifies a row by its index, i.e. its position within the data controller.

The number of selected rows is determined by the GetSelectedCount function. To access selected rows, you can use the GetSelectedRowIndex function (in provider, unbound and default bound modes) and GetSelectedBookmark (in grid mode).

To iterate selected rows, the ForEachRow method can be applied.

See the MultiSelect property for more details.

See Also