PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetColumnFields() Method

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.2.Core.dll

Declaration

public TField[] GetColumnFields()
Public Function GetColumnFields As TField()

Returns

Type Description
TField[]

An array of column fields.

Remarks

The PivotGrid control supports multiple column fields. Use the GetColumnFields method to get column fields which correspond to the processed cell. If the cell belongs to a column grand total, the GetColumnFields method returns an empty array (the array's length is 0).

To get the innermost column field which corresponds to the current cell use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.ColumnField property. This property's value matches the value of the last element in the array returned by the GetColumnFields method.

To get any field's value for the processed cell use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetFieldValue method.

See Also