|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGridView Programmatic SortHi folks,
The facts : 1) I've got a forms application that has a datagridview. 2) The datagridview is bound at runtime to a datatable object. The problem : The default sort is great on all columns but one. On that column I want to be able to intercept the sorting and apply my own programmatic sort code, so I set the SortMode property to programmatic. But what event is fired when the user clicks on the column header to sort the column?? MSDN tells me that the SortCompare won't fire when the datasource is set. Any ideas on how where I stick my sort code? (clean answers only please) Pete Hi Pete
Is this problem solved with your post about Event not firing? Stefan <pba***@recoilsoft.com> schrieb im Newsbeitrag Show quote news:1155213767.639184.62410@i3g2000cwc.googlegroups.com... > Hi folks, > > The facts : > 1) I've got a forms application that has a datagridview. > 2) The datagridview is bound at runtime to a datatable object. > > The problem : > The default sort is great on all columns but one. On that column I want > to be able to intercept the sorting and apply my own programmatic sort > code, so I set the SortMode property to programmatic. But what event is > fired when the user clicks on the column header to sort the column?? > MSDN tells me that the SortCompare won't fire when the datasource is > set. > > Any ideas on how where I stick my sort code? (clean answers only > please) > > Pete > |
|||||||||||||||||||||||