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.ClearSelection Method

In This Article

Unselects all rows in a data controller.

#Declaration

Delphi
procedure ClearSelection;

#Remarks

A data controller enables you to select rows (data records and grouping rows).

To enable multiple selection of rows, set the MultiSelect property to True. In this case, you can use the ChangeRowSelection, SelectAll and SelectRows methods to select rows.

If MultiSelect is False, you are not able to select multiple rows.

The ClearSelection method clears the selection state of all selected rows. ClearSelection is in effect only when MultiSelect is set to True. To delete selected rows, use the DeleteSelection method.

The number of selected rows is determined by the GetSelectedCount method. See the MultiSelect description for more information.

See Also