corelibraries-devexpress-dot-xtrapivotgrid-dot-selection-dot-imultipleselection.md
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
ReadOnlyCells SelectedCells { get; }
ReadOnly Property SelectedCells As ReadOnlyCells
| Type | Description |
|---|---|
| ReadOnlyCells |
A ReadOnlyCells object that represents the read-only collection containing the selected cells.
|
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
OrderDrillDownList = new ObservableCollection<MyOrderRow>();
foreach (System.Drawing.Point cellPoint in pivotGridControl1.MultiSelection.SelectedCells)
{
See Also