DataGridView Programmatic Sort

  • Thread starter Thread starter pbaugh
  • Start date Start date
P

pbaugh

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
 
Back
Top