How to set the width of a column

9 Dec 2019 / 1 minute to read

Changing a column’s width is simple whether you are using the designer or code. In the designer, use ColWidthsEntries collection. In code, use GridControl.ColWidths collection to specify the width of a column.

//Sets size of column 3 to 250.
this.gridControl1.ColWidths[3] = 250;
'Sets size of column 3 to 250.
Me.GridControl1.ColWidths(3) = 250