Last post Feb 06, 2011 01:58 AM by Lateef045
Feb 05, 2011 04:16 AM|ussr1287|LINK
hi masters and friends!
take a look at this please:
contents of one table are sorted by price,factory,model,size and ...
if a want to get some sorts on one tabel, can i do that with one datasource?seems to be crazy to use one data source for each sorting.
thank you so much.
Feb 06, 2011 01:58 AM|Lateef045|LINK
What is your DataSource?
Are you using DataTable as your datasource or are you binding to custom list?
If you are using DataTable or DataView etc for displaying your data, then sorting is quite easy with this.
The DataView has a sort property which when assigned to a column (or combination of column) will sort the data in the view.
I will suggest that your datasource should be only one. Then you can sort as per condition.