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