Skip to main content

PivotGridSettings.CustomUnboundFieldData Property

Enables providing data to unbound fields.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public CustomFieldDataEventHandler CustomUnboundFieldData { get; set; }

Property Value

Type Description
CustomFieldDataEventHandler

A CustomFieldDataEventHandler delegate method allowing you to implement custom processing.

Remarks

The CustomUnboundFieldData event is only fired for unbound fields. To create an unbound field, add a MVCxPivotGridField object to the PivotGridSettings.Fields collection and set its PivotGridFieldBase.UnboundType property to an appropriate value according to the type of data the field is supposed to display. The field’s PivotGridField.FieldName property must be set to a unique value. This value must not refer to any field in the control’s underlying data source.

The CustomUnboundFieldData event is raised for each row and for each unbound field in the data source. The currently processed row is identified by the CustomFieldDataEventArgs.ListSourceRowIndex property. This property specifies the row’s index in the data source. The processed unbound field is identified by the PivotFieldEventArgsBase<T>.Field property. To provide data for a cell, assign a value to the CustomFieldDataEventArgs.Value property.

Note

The CustomUnboundFieldData is not supported in server and OLAP modes.

See Also