Skip to main content

DataControlBase.SelectItem(Object) Method

Selects the specified item.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

#Declaration

public void SelectItem(
    object item
)

#Parameters

Name Type Description
item Object

An object that is the item to select.

#Remarks

The SelectItem method allows you to select the required item while preserving the current selection (if any). If the specified item is hidden within a collapsed group, the SelectItem method does nothing.

To unselect an item, use the DataControlBase.UnselectItem method. To clear the current selection, use the DataControlBase.UnselectItem method.

See Also