Back to Devexpress

CellElementData.ColumnIndex Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-cellelementdata-da75b79f.md

latest2.5 KB
Original Source

CellElementData.ColumnIndex Property

Gets the index of the column.

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

The column index.

|

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-pivot-grid-define-custom-cell-template-to-performing-data-editing/CS/HowToEditCell/PivotGridEditHelper.cs#L204

csharp
public PivotDrillDownDataSource CreateDrillDownDataSource() {
    return pivotGrid.CreateDrillDownDataSource(cellItem.ColumnIndex, cellItem.RowIndex);
}

wpf-pivot-grid-define-custom-cell-template-to-performing-data-editing/VB/HowToEditCell/PivotGridEditHelper.vb#L223

vb
Public Function CreateDrillDownDataSource() As PivotDrillDownDataSource
    Return pivotGrid.CreateDrillDownDataSource(cellItem.ColumnIndex, cellItem.RowIndex)
End Function

See Also

CellElementData Class

CellElementData Members

DevExpress.Xpf.PivotGrid Namespace