Surely there is a simple way. Using DataView will overcome this issue.
DataTable's View property will give a valid DataView. DataView's Sort
expression works similar to SQL. It accepts an order by string. Simply you
can write "PKID ASC, UserID DESC, ActionDate ASC".
--
Thanks,
Yunus Emre ALPÖZEN
"Ed Chiu" <Ed****@discussions.microsoft.com> wrote in message
news:20**********************************@microsof t.com...
Hi,
Is there a way to sort a datagrid without the help of SQL server? I
usually
use ADO.Net to get a dataset from SQL sever then bind it to datagrid. Now
I
am asked to make datagrid support sorting, of course I can change my SQL
statements by adding order by clause for sorting purposes. But I would
like
to know if there are other options.
TIA