DataBoundGrid in Windows Forms xp toolbar
27 Apr 20211 minute to read
The simplest way to change the column order in a Grid Data Bound Grid is to use the GridDataBoundGrid.Model.Cols.MoveRange method. This method will rearrange columns that are based on from and to and counts the parameters passed into it.
//Moves columns 4 and 5, to column 1. this.gridDataBoundGrid1.Model.Cols.MoveRange(4, 2, 1);
'Moves columns 4 and 5, to column 1. Me.GridDataBoundGrid1.Model.Cols.MoveRange(4, 2, 1)