Back to Devexpress

PivotGridCells.ColumnCount Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcells-ee9b6f6a.md

latest2.6 KB
Original Source

PivotGridCells.ColumnCount Property

Gets the number of columns in the PivotGrid control.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

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

Property Value

TypeDescription
Int32

An integer which specifies the number of columns displayed within the PivotGrid control.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnCount 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.

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/CS/Report_at_Runtime/PivotReportGenerator.cs#L57

csharp
tempRowText = "";
for (int j = 0; j < pivot.Cells.ColumnCount; j++)
{

winforms-create-a-custom-exporter-for-pivotgridcontrol-with-xtrareport/VB/Report_at_Runtime/PivotReportGenerator.vb#L57

vb
tempRowText = ""
For j As Integer = 0 To pivot.Cells.ColumnCount - 1
    pcea = pivot.Cells.GetCellInfo(j, i)

See Also

RowCount

PivotGridCells Class

PivotGridCells Members

DevExpress.XtraPivotGrid Namespace