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.GetSelectedCells() Method

Gets selected data cells.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public IList<TreeListCell> GetSelectedCells()

#Returns

Type Description
IList<DevExpress.Xpf.Grid.TreeList.TreeListCell>

A list of TreeListCell objects.

#Remarks

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 DataControlBase.SelectionMode property to 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