Skip to main content

PivotCustomDrawCellBaseEventArgs.GetColumnFields() Method

Returns an array of column fields that correspond to the current cell.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v23.2.dll

NuGet Package: DevExpress.Win.PivotGrid

Declaration

public PivotGridField[] GetColumnFields()

Returns

Type Description
PivotGridField[]

An array of column fields.

Remarks

Pivot Grid Control supports multiple column fields. Use the GetColumnFields method to obtain column fields that correspond to the current cell. If this cell belongs to a Column Grand Total, the GetColumnFields method returns an empty array.

To obtain the innermost column field that corresponds to the current cell, use the PivotCustomDrawCellBaseEventArgs.ColumnField property. The PivotCustomDrawCellBaseEventArgs.ColumnField property value matches the value of the last element in the array returned by the GetColumnFields method.

Use the PivotCustomDrawCellBaseEventArgs.GetRowFields method to obtain an array of row fields that correspond to the current cell.

To obtain field values that correspond to the current cell, use the PivotCustomDrawCellBaseEventArgs.GetFieldValue method.

Note

If you call the GetColumnFields method while an asynchronous operation is being performed, an exception will be thrown. To determine whether the operation is in progress, use the pivot grid’s IThreadSafeAccessible.IsAsyncInProgress property. For more information, see Asynchronous Mode.

See Also