How to change the height of a row in WinForms GridControl?
Change the row height
The WinForms GridControl supports setting the height of the row by passing the row index in the RowHeight property or by using the QueryRowHeight event.
By using GridModel
//Apply Rowheight to the Row 3.
this.gridControl1.RowHeights[3] = 70;'Apply Rowheight to the Row 3.
Me.gridControl1.RowHeights(3) = 70By using QueryRowheight
void gridControl1_QueryRowHeight(object sender, Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs e)
{
// Apply Rowheights to the Row 3
if (e.Index == 3)
{
e.Size = 70;
e.Handled = true;
}
}Private Sub gridControl1_QueryRowHeight(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs)
'Apply Rowheights to the Row 3
If e.Index = 3 Then
e.Size = 70
e.Handled = True
End If
End SubAfter applying the properties, the row looks like the following screenshot.

Figure 1: Changing the row height
Samples:
C#: Change Height
VB: Change Height
Conclusion
I hope you enjoyed learning about how to change the height of the row in WinForms GridControl.
You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started for configuration specifications.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!