BootstrapGridViewCustomColumnSortEventArgs Class
Provides data for the BootstrapGridView.CustomColumnSort and BootstrapGridView.CustomColumnGroup events.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
Declaration
Remarks
If a column’s GridDataColumnSettings.SortMode property is set to ‘Custom’, the BootstrapGridView’s data can be sorted and grouped by this column using custom algorithms. To implement custom sorting and (or) grouping, handle the BootstrapGridView.CustomColumnSort and BootstrapGridView.CustomColumnGroup events. The BootstrapGridViewCustomColumnSortEventArgs class provides data for these events.
When handling the BootstrapGridView.CustomColumnSort event, the result indicates whether one row should be positioned above or below another row. For the BootstrapGridView.CustomColumnGroup event, the result should indicate whether the two rows should be combined into the same group. The result is specified by the GridCustomColumnSortEventArgs.Result property.
The GridCustomColumnSortEventArgs.ListSourceRowIndex1 and GridCustomColumnSortEventArgs.ListSourceRowIndex2 properties specify the row indexes in the underlying data source.
To indicate that the comparison operation was handled, and no default processing is required, set the GridCustomColumnSortEventArgs.Handled property to true. Otherwise, the default comparison mechanism will be invoked after your event handler has been called, and this will override the custom result.