Back to Devexpress

PivotGridControl.FieldAreaIndexChanged Event

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-3d1e76a5.md

latest5.1 KB
Original Source

PivotGridControl.FieldAreaIndexChanged Event

Occurs after a field has been moved.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public event PivotFieldEventHandler FieldAreaIndexChanged
vb
Public Event FieldAreaIndexChanged As PivotFieldEventHandler

Event Data

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

PropertyDescription
FieldGets the field being processed.
HandledGets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. Inherited from RoutedEventArgs.
OriginalSourceGets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class. Inherited from RoutedEventArgs.
RoutedEventGets or sets the RoutedEvent associated with this RoutedEventArgs instance. Inherited from RoutedEventArgs.
SourceGets or sets a reference to the object that raised the event. Inherited from RoutedEventArgs.

The event data class exposes the following methods:

MethodDescription
InvokeEventHandler(Delegate, Object)When overridden in a derived class, provides a way to invoke event handlers in a type-specific way, which can increase efficiency over the base implementation. Inherited from RoutedEventArgs.
OnSetSource(Object)When overridden in a derived class, provides a notification callback entry point whenever the value of the Source property of an instance changes. Inherited from RoutedEventArgs.

Remarks

The FieldAreaIndexChanged event occurs after one of the following has happened:

  • a field’s PivotGridField.AreaIndex property has been changed via code;
  • an end-user has moved a field to another position within the same area;
  • an end-user has moved a field to another area, and the field’s index in this area differs from the index the field had before the operation.

To determine which field has been moved, use the event parameter’s PivotFieldEventArgs.Field property.

All the actions above also raise the PivotGridControl.FieldAreaChanged event. This event occurs before the FieldAreaIndexChanged event.

To learn more about fields, see Fields.

See Also

AreaIndex

FieldAreaChanged

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace