datagrid column sort

  • Thread starter Thread starter anterosousa
  • Start date Start date
A

anterosousa

Is there a way I can send a click event to a datagrid. I want to
simulate a
user clicking on a heading to sort the display.
 
anterosousa,

There is no need to do this. If you bound the DataTable to the grid,
then check the DefaultView property, and set the DataView's Sort property to
the column you want to sort the grid by. This will cause the grid, in turn,
to update itself as a result of the sort.

Hope this helps.
 

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