How can I help you?
How to set the height of a row in Windows Forms Grid Control
5 Jun 20251 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