G
Guest
I need to detect when the user clicks on a column header to resort the data
in a DataGrid. I've added an event handler to my class, which is a form that
hold the DataGrid:
Private Sub DataGridLamps_Navigate(ByVal sender As System.Object, ByVal ne
As System.Windows.Forms.NavigateEventArgs) Handles MyDataGrid.Navigate
'do stuff here
End Sub
The form also has:
Friend WithEvents MyDataGrid As System.Windows.Forms.DataGrid
The handler is never called even though clicking on the grid headings
resorts the data.
Also (perhaps related), if I use Form Designer to set
MyDataGrid.AllowingSorting = false, the Grid ignores this an happily allows
sorting.
Is this a known bug? We're using Visual Studio 2003 V7.1.3008, and .Net
V1.1.4322
in a DataGrid. I've added an event handler to my class, which is a form that
hold the DataGrid:
Private Sub DataGridLamps_Navigate(ByVal sender As System.Object, ByVal ne
As System.Windows.Forms.NavigateEventArgs) Handles MyDataGrid.Navigate
'do stuff here
End Sub
The form also has:
Friend WithEvents MyDataGrid As System.Windows.Forms.DataGrid
The handler is never called even though clicking on the grid headings
resorts the data.
Also (perhaps related), if I use Form Designer to set
MyDataGrid.AllowingSorting = false, the Grid ignores this an happily allows
sorting.
Is this a known bug? We're using Visual Studio 2003 V7.1.3008, and .Net
V1.1.4322