GridControl.CustomColumnGroup Event
In This Article
Provides the ability to group data using custom rules.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Event Data
The CustomColumnGroup event's handler receives an argument of the CustomColumnSortEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets the column whose values are being compared. |
Handled | Gets or sets whether a comparison operation is handled and no default processing is required. |
List |
Gets the index of the first of the two rows being compared in the data source. |
List |
Gets the index of the second of the two rows being compared in the data source. |
Result | Gets or sets the result of a custom comparison. |
Sort |
Gets the sort order applied to the column. |
Source | Gets the grid control that raised the event. |
Value1 | Gets the first value being compared. |
Value2 | Gets the second value being compared. |
#Remarks
If the built-in grouping modes don't suit your requirements, you can implement custom logic. To do this, set the ColumnBase.SortMode property to 'Custom', and handle the CustomColumnGroup event. To change the text displayed within group rows by default, handle the GridControl.CustomGroupDisplayText event.
See Also