How to set the height of a row in Windows Forms Grid Control
15 Jun 20211 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 = 40; //Sets height of header row 30. this.gridControl1.RowHeights = 30;
'Sets height of row 3 to 40. Me.GridControl1.RowHeights(3) = 40 'Sets height of header row 30. Me.GridControl1.RowHeights(0) = 30