datagrid column sizes

  • Thread starter Thread starter Starbuck
  • Start date Start date
S

Starbuck

Hi

Is there anyway of capturing when the users adjusts the width of a datagrid
column so the new column width can be stored.

Thanks in advance
 
Hi,

Try something like this is the datagrid mouse move
event.


Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove

Dim hti As DataGrid.HitTestInfo

hti = DataGrid1.HitTest(e.X, e.Y)

If hti.Type = DataGrid.HitTestType.ColumnResize Then

Debug.WriteLine(String.Format("Resized Column {0}", hti.Column))

End If

End Sub



Ken

-------------------
Hi

Is there anyway of capturing when the users adjusts the width of a datagrid
column so the new column width can be stored.

Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top