Back to Devexpress

BootstrapGridViewCustomColumnSortEventArgs Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-0b59cf99.md

latest4.0 KB
Original Source

BootstrapGridViewCustomColumnSortEventArgs Class

Provides data for the BootstrapGridView.CustomColumnSort and BootstrapGridView.CustomColumnGroup events.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
public class BootstrapGridViewCustomColumnSortEventArgs :
    CustomColumnSortEventArgs
vb
Public Class BootstrapGridViewCustomColumnSortEventArgs
    Inherits CustomColumnSortEventArgs

BootstrapGridViewCustomColumnSortEventArgs is the data class for the following events:

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.

Inheritance

Object EventArgs GridCustomColumnSortEventArgs CustomColumnSortEventArgs BootstrapGridViewCustomColumnSortEventArgs

See Also

BootstrapGridViewCustomColumnSortEventArgs Members

CustomColumnSort

CustomColumnGroup

Grid View

DevExpress.Web.Bootstrap Namespace