Nicholas
Tue Sep 07 12:08:16 CDT 2004
Hardy,
Absolutely. Create a new instance of a DataView class, and then pass
the DataTable you want to sort to the DataView. Once you do that, you can
set the Sort property to the fields that you want to sort the DataTable by.
Then, you would access the rows through the data view, not through the
table, and you will see them in order.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"Hardy Wang" <hardywang@hotmail.com> wrote in message
news:OeRsSzPlEHA.3988@tk2msftngp13.phx.gbl...
> Hi,
> I have a DataSet, returned by a stored procudure, which has only on
> DataTable. At this step there is no sort in DataTable. Is there is a way I
> can do to sort DataRows in this DataTable (not from select statement of
> sql query) in memory?
> Thanks
>
> --
> WWW:
http://hardywang.1accesshost.com
> ICQ: 3359839
> yours Hardy
>