RadControls for WinForms

Reordering columns

The RadGridView control supports column reordering by the user at run-time. The user has just to drag the desired column's header at the desired position among the other headers and drop it there. In the RadGridView control, the RadGridView.AllowColumnReorder property value determines whether users can move columns to different positions.

Copy[C#] Allow or disallow column reordering
radGridView1.AllowColumnReorder = true;
Copy[VB.NET] Allow or disallow column reordering
RadGridView1.AllowColumnReorder = True

Reordering columns programmatically

In order to reorder columns in RadGridView programmatically you should use the Move method of the RadGridView Columns collection:

Copy[C#] Reordering columns programmatically
radGridView1.Columns.Move(5, 0);
radGridView1.Columns.Move(4, 1);
Copy[VB.NET] Reordering columns programmatically
RadGridView1.Columns.Move(5, 0)
RadGridView1.Columns.Move(4, 1)