Reorder the column at the specified index and place it at the new index:
var grid = $("#grid").swidget(); grid.reorderColumn(3, 1);
The first argument is the zero-based current index of the column to reorder, while the second argument is the destination index the column must go to. The index of a grid column does not take into account the existence of additional service columns at the beginning of the grid. For example, when a detail template is defined, the first column, which is a service column that holds the expand/collapse buttons, does not participate in the indexing of the data columns. Thus, the first data column starts at index 0 for the purpose of the
reorderColumn method, even though it is visually rendered second.