Back to Devexpress

IMultipleSelection.SelectedCells Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-selection-dot-imultipleselection.md

latest2.7 KB
Original Source

IMultipleSelection.SelectedCells Property

Gets the collection of the selected cells.

Namespace : DevExpress.XtraPivotGrid.Selection

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
ReadOnlyCells SelectedCells { get; }
vb
ReadOnly Property SelectedCells As ReadOnlyCells

Property Value

TypeDescription
ReadOnlyCells

A ReadOnlyCells object that represents the read-only collection containing the selected cells.

|

Remarks

To change the selection, use the IMultipleSelection.SetSelection method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedCells property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivotgrid-how-to-display-underlying-data/CS/WpfDrillDownDataSourceExample/MainWindow.xaml.cs#L26

csharp
OrderDrillDownList = new ObservableCollection<MyOrderRow>();
foreach (System.Drawing.Point cellPoint in pivotGridControl1.MultiSelection.SelectedCells)
{

See Also

SetSelection(Point[])

IMultipleSelection Interface

IMultipleSelection Members

DevExpress.XtraPivotGrid.Selection Namespace