Skip to main content

TreeListView.GetSelectedCells() Method

Gets selected data cells.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core


public IList<TreeListCell> GetSelectedCells()


Type Description

A list of TreeListCell objects.


Call the nested GridControl’s TreeListView.GetSelectedCells method to get detail grids’ selected cells.

If multiple cell selection is disabled or there aren’t any selected cells, the GetSelectedCells method returns an empty list. To enable block selection, set the DataViewBase.NavigationStyle property to GridViewNavigationStyle.Cell and set the TreeListView.MultiSelectMode property to TableViewSelectMode.Cell.

To obtain handles of selected rows, use the DataControlBase.GetSelectedRowHandles method.

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

See Also