C
Chris Botha
VS2005 and I have a DataTable displayed in a DataGridView that needs custom
sorting, with the DataSource of the grid set to the DataTable and the
SortCompare event just won't fire.
Then I found this in the docs "This event occurs only when the DataSource
property is not set and the VirtualMode property value is false"
This seems really odd but may be true. I can't see what the purpose of this
event is then, how else will one use the DataGridView other than setting the
DataSource to something?
How else to do the custom sorting when the user clicks a column header is
also welcome.
Thanks.
sorting, with the DataSource of the grid set to the DataTable and the
SortCompare event just won't fire.
Then I found this in the docs "This event occurs only when the DataSource
property is not set and the VirtualMode property value is false"
This seems really odd but may be true. I can't see what the purpose of this
event is then, how else will one use the DataGridView other than setting the
DataSource to something?
How else to do the custom sorting when the user clicks a column header is
also welcome.
Thanks.