Skip to main content

DataControlBase.UnselectAll() Method

Unselects any selected items within a grid.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll


public void UnselectAll()


Multiple row/card selection isn’t allowed if the DataControlBase.NavigationStyle property is set to GridControlNavigationStyle.None and the DataControlBase.SelectionMode property is set to ‘None’.

The UnselectAll method clears the current selection (clears the DataControlBase.SelectedItems collection). To select all items, use the DataControlBase.SelectAll method. To select or unselect individual rows/cards, use the DataControlBase.SelectItem and DataControlBase.UnselectItem methods, respectively.

See Also