How to Set the Height of a Row in Windows Forms Grid Control
18 Nov 20181 minute to read
Changing a row’s height is simple whether you are using the designer or code. From the designer, use RowHeightEntries collection. To explicitly set height of the particular row from code, use GridControl.RowHeights collection.
//Sets height of row 3 to 40.
this.gridControl1.RowHeights[3] = 40;
//Sets height of header row 30.
this.gridControl1.RowHeights[0] = 30;'Sets height of row 3 to 40.
Me.GridControl1.RowHeights(3) = 40
'Sets height of header row 30.
Me.GridControl1.RowHeights(0) = 30