Skip to content

ColReorder

Reference

ColReorder adds the ability for the end user to be able to reorder columns in a DataTable through a click and drag operation. This can be useful when presenting data in a table, letting the user move columns that they wish to compare next to each other for easier comparison.

Enable the ColReorder extension for DataTables.

.ColReorder(true)
Or, configure it.
.ColReorder(x => x.Order(5, 4, 3, 2, 1, 0))

Enable

Initial enablement state of ColReorder.

.Enable(true)

Order

Set a default order for the columns in the table.

.Order(5, 4, 3, 2, 1, 0)

Columns

Select which columns can be reordered.

.Columns(":gt(1)")