The following example demonstrates how to split field value cells. In this example, the Grand Total column header is split into two cells: Price and Count.
Handle the CustomFieldValueCells event and call the event parameter's Split method. Cells that should be split are identified by a predicate that returns true for those cells. The quantity, size, and captions of newly created cells are specified by an array of cell definitions (the FieldValueSplitData objects).
- Data.cs (VB: Data.vb)
- Form1.cs (VB: Form1.vb)
- Program.cs (VB: Program.vb)