Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridControl.CustomUnboundFieldData Event

Enables providing data to unbound fields.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v24.2.dll

NuGet Package: DevExpress.Win.PivotGrid

#Declaration

public event CustomFieldDataEventHandler CustomUnboundFieldData

#Event Data

The CustomUnboundFieldData event's data class is CustomFieldDataEventArgs. The following properties provide information specific to this event:

Property Description
Field Gets the unbound field currently being processed. Inherited from CustomFieldDataEventArgsBase<T>.
ListSourceRowIndex Gets the current row index in the data source. Inherited from CustomFieldDataEventArgsBase<T>.
Value Gets or sets the currently processed value. Inherited from CustomFieldDataEventArgsBase<T>.

The event data class exposes the following methods:

Method Description
GetListSourceColumnValue(Int32, String) Returns the value of the specified cell within the specified row in the control’s underlying data source. Inherited from CustomFieldDataEventArgsBase<T>.
GetListSourceColumnValue(String) Returns the value of the specified cell within the processed row in the control’s underlying data source. Inherited from CustomFieldDataEventArgsBase<T>.

#Remarks

This member is no longer supported in Optimized, OLAP and Server modes. Use ExpressionDataBinding or OLAPExpressionBinding for OLAP instead.

Refer to the following article for more information on how to build an expression with custom function: Calculated Fields.

See Also