Home Forums WinForms controls Xceed Grid for WinForms fixed row height Reply To: fixed row height

Xceed Support
Member
Post count: 5658

You could easily implement it through the HeightChanged event:

<code>
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
‘…

AddHandler gridControl1.DataRowTemplate.HeightChanged, AddressOf DataRowTemplate_HeightChanged
End Sub

Private Sub DataRowTemplate_HeightChanged(ByVal sender As Object, ByVal e As EventArgs)
DirectCast(sender, Xceed.Grid.DataRow).Height = 16 ‘or the original height
End Sub
</code>

Imported from legacy forums. Posted by CharlesB (had 358 views)