Fix column width of DataGrid

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how I can fix the column width of a DataGrid

I tried the solution posted on synfusion. Doesn't seem to work for me

Any other suggestion really appreciated

Thank
 
Hi,

Try the mouse down event instead.

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.ColumnResize Then

' Return 'no baseclass call

End If

MyBase.OnMouseDown(e)

End Sub



Ken
 
Back
Top