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

TreeListView.SelectCell(Int32, ColumnBase) Method

Selects the cell.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public void SelectCell(
    int rowHandle,
    ColumnBase column
)

#Parameters

Name Type Description
rowHandle Int32

An integer value that specifies the handle of the row where the cell is located.

column ColumnBase

A ColumnBase object that is the column which contains the cell.

#Remarks

Use the SelectCell method to select a cell, adding it to the existing selection (if any). A cell is located at the intersection of the specified row and column.

The SelectCell method does nothing if the DataViewBase.NavigationStyle property isn’t set to GridViewNavigationStyle.Cell and/or the DataControlBase.SelectionMode property isn’t set to MultiSelectMode.Cell.

To select multiple cells, use the TreeListView.SelectCell method.

To learn more on multi-cell selection, see Multiple Cell Selection.

See Also