How to Set the Height of a Row in Windows Forms

28 Apr 20211 minute to read

This page explains How to Set the Height of a Row and more details.

How to Set the Height of a Row

To explicitly set the height of a particular row, use the Model.RowHeights collection.

//Sets height of row 3 to 40.
this.gridDataBoundGrid1.Model.RowHeights[3] = 40; 

//Sets height of header row 30.
this.gridDataBoundGrid1.Model.RowHeights[0] = 30;
'Sets height of row 3 to 40.
Me.GridDataBoundGrid1.Model.RowHeights(3) = 40 

'Sets height of header row 30.
Me.GridDataBoundGrid1.Model.RowHeights(0) = 30