Back to Devexpress

PivotGridControl.CustomUnboundFieldData Event

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-a6bc61b7.md

latest3.4 KB
Original Source

PivotGridControl.CustomUnboundFieldData Event

Enables providing data to unbound fields.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public event PivotCustomFieldDataEventHandler CustomUnboundFieldData
vb
Public Event CustomUnboundFieldData As PivotCustomFieldDataEventHandler

Event Data

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

PropertyDescription
FieldGets the unbound field currently being processed.
ListSourceRowIndexGets the current row’s index in the data source.
ThreadSafeFieldGets the unbound field currently being processed. Provides read-only access to field settings.
ValueGets or sets the value of the cell currently being processed.

The event data class exposes the following methods:

MethodDescription
GetListSourceColumnValue(Int32, String)Gets the value of the specified field in the specified row in the control’s underlying data source.
GetListSourceColumnValue(String)Gets the value of the specified cell within the current row in the control’s underlying data source.

Remarks

Important

This member is not supported in Optimized, OLAP, and Server modes. Use ExpressionDataBinding for Optimized mode instead.

Unbound fields are not bound to any field in the data source. In most instances, data for unbound fields is obtained from a custom data source or is calculated based upon the values of bound fields. To provide data for unbound fields, you can specify an expression (formula) used to evaluate values for this field using the PivotGridField.UnboundExpression property or handle the CustomUnboundFieldData event.

To learn more about unbound data, see Unbound Fields.

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace