The event handler receives an argument of type QueryGroupKeysEventArgs containing data related to this event. The following QueryGroupKeysEventArgs properties provide information specific to this event.
Property | Description |
---|---|
DataRow | Gets the data row to group. |
GroupKeys | Gets a list containing the group values. |
When creating custom groups, the Group.GroupBy property must be set in order for the groups which are created manually to be sorted. These groups will be sorted in the same direction as the columns whose fieldname is set in the GroupBy property.
The following example will group all the data rows according to the value of the
ShipCountry cell. All data rows whose ShipCountry cell's value begins with A to M
will be grouped together while those from N to Z will be grouped together.
The second group level will regroup all data rows according to the value of the ShipCity
cell. All data rows whose ShipCity cell's value begin with the 2 same letters will
be grouped together. For example, Mannheim and Marseille will be regrouped together.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2