vb.net DataGrid with fixed row height

Can I fix the height of the row someway that even if someone tries to change the height of the row (at runtime), it will not be allowed and here is how you do it.

You have to make an new datagrid. Here is an example.

Public Class NoResizeDataGrid

Inherits DataGrid

Protected Overrides Sub OnMouseDown(ByVal e As
System.Windows.Forms.MouseEventArgs)

Dim hti As DataGrid.HitTestInfo = Me.HitTest(New Point(e.X, e.Y))

If hti.Type = DataGrid.HitTestType.RowResize Then

Return 'no baseclass call

End If

MyBase.OnMouseDown(e)

End Sub

End Class