-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: sdatye
Message 2 in Discussion
Hi, i am assuming that you are binding some kind of source that implements
IEnumerable interface. That can be a datatable, dataset, arraylist, or GOD knows what!
Now your requirement is to apply double sorting, i.e. you apply sort on col1 and
then on col2, then your sort on col1 should also hold true, if I am not wrong. If I am
wrong stop reading here! :D The simpler way to do this would be to build a dataview
from the datatable. Dataview exposes a sort property which allows you to srot on more
than one field. Here's a simple e.g. to demo the usage of the sort property. (Assuming
the dataview myDataView exists ;)) myDataView.Sort = "State, ZipCode DESC" And this
you can bind to the datagrid because a dataview implements the IEnumerable interface.
Hope this solves your problem to a certain extent! Sarang S. Datye MCSD .NET
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]