Back to Devexpress

TreeListView.GetSelectedCells() Method

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-710b6402.md

latest2.2 KB
Original Source

TreeListView.GetSelectedCells() Method

Gets selected data cells.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public IList<TreeListCell> GetSelectedCells()
vb
Public Function GetSelectedCells As IList(Of TreeListCell)

Returns

TypeDescription
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

SelectCell

SelectCells

UnselectCell

UnselectCells

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace