Jehu,
All you have to do is look up DataView.Sort in the help and you'll find this
about what goes in the Sort property:
"A string containing the column name followed by "ASC" (ascending) or "DESC"
(descending). Columns are sorted ascending by default. Multiple columns can
be separated by commas."
You could have tested to see if this worked in about 3 minutes, too.
The source of the data (whether it comes from a back end database or is
inserted into the DataTable programmatically, etc) has no bearing on whether
or not this works, if that's what you're wondering. You can think of a
DataSet as a lightweight client-side in-memory database, really.
--Bob
"alAzif" <da*********@gmail.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Hi everyone.
If I have a table T with columns C1 and C2, I would like to know if the
following is possible:
T.DefaultView.Sort = "C1 ASC, C2 DESC";
If this is not so, I would really appreciate other options you might
think of.
Table T is not populated from a database. It is created and filled
dynamically, so receiving the data pre-sorted is not an option.
Thanks in advance.
Jehu.