Back to Devexpress

PivotCellBaseEventArgs.ColumnIndex Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotcellbaseeventargs-f7037e32.md

latest2.8 KB
Original Source

PivotCellBaseEventArgs.ColumnIndex Property

Gets the visual index of the column that contains the processed cell.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public int ColumnIndex { get; }
vb
Public ReadOnly Property ColumnIndex As Integer

Property Value

TypeDescription
Int32

An integer value which specifies the visual index of the column that contains the processed cell.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnIndex 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-asynchronously/CS/WpfDrillDownDataSourceExample/MainWindow.xaml.cs#L41

csharp
gridControl1.ItemsSource =
        await pivotGridControl1.CreateDrillDownDataSourceAsync(e.ColumnIndex, e.RowIndex);
}

wpf-pivotgrid-how-to-display-underlying-data-asynchronously/VB/WpfDrillDownDataSourceExample/MainWindow.xaml.vb#L43

vb
Private Async Sub pivotGridControl1_CellClick(ByVal sender As Object, ByVal e As PivotCellEventArgs)
    gridControl1.ItemsSource = Await pivotGridControl1.CreateDrillDownDataSourceAsync(e.ColumnIndex, e.RowIndex)
End Sub

See Also

RowIndex

PivotCellBaseEventArgs Class

PivotCellBaseEventArgs Members

DevExpress.Xpf.PivotGrid Namespace