PivotGridGroup.CanChangeArea(PivotGridFieldBase) Method
Determines whether changing the location of the specified field will change the location of the entire group.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v24.1.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
field | PivotGridFieldBase | A PivotGridFieldBase descendant which represents the inspected field. |
Returns
Type | Description |
---|---|
Boolean | true if changing the location of the specified field will change the location of the entire group; otherwise, false. |
Remarks
When several fields are combined into one group, their location is determined by the location of the first field within the group. Setting the PivotGridFieldBase.Area property of other fields will have no effect in this case. Use the CanChangeArea method to check whether changing the location of the specified field via code will change the location of the entire group.
If the specified field belongs to another group, the CanChangeArea method does nothing.