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.
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
"anterosousa" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>