PivotCustomFieldValueCellsEventArgs.Split(Boolean, Predicate<FieldValueCell>, Boolean, FieldValueSplitData[]) Method
Splits all field value cells that match the specified condition, or only the first matching cell.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
public void Split(
bool isColumn,
Predicate<FieldValueCell> match,
bool firstCellOnly,
params FieldValueSplitData[] cells
)
#Parameters
Name | Type | Description |
---|---|---|
is |
Boolean | true to process column field value cells; false to process row field value cells. |
match | Predicate<Field |
A System. |
first |
Boolean | true to split only the first cell that matches the specified condition; false to split all cells that match the condition. |
cells | Field |
The Field |
#Remarks
The Split method cannot split a field value cell if it has only one nested cell, or has none.
To split a cell (or several cells), create a System.Predicate<FieldValueCell> delegate that defines which cells should be split, and pass it as the match parameter. You should also create a set of FieldValueSplitData objects. Each of them identifies a single new cell, from the leftmost to the rightmost (for the column cells), or from the topmost to the bottommost (for the row cells). Specify the size and values of the new cells using the FieldValueSplitData.NestedCellCount and FieldValueSplitData.Value properties, respectively, and pass the created objects as the cells parameter. The FieldValueSplitData.NestedCellCount property defines the size of a newly created cell by specifying the number of cells nested in it.