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
 

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

Back
Top