shellbelle
New member
- Joined
- Oct 14, 2010
- Messages
- 1
- Programming Experience
- 10+
I have a gridview that has allowsorting=true. The grid is populated using objectdatasource (ods).
ODS gets fed by the service layer (part of our n-tier architecture) which is in the form of a dto.
Grid gets populated fine and dandy, but when I click on a column header to sort it, I get this error:
The data source 'ObjectDataSource3' does not support sorting with IEnumerable data. Automatic sorting is only supported with DataView, DataTable, and DataSet.
So how can I sort my gridview knowing that the only format coming out of my service layer is dto format?
I am pretty new with this stuff, so I would appreciate any help!!! Thank you!
ODS gets fed by the service layer (part of our n-tier architecture) which is in the form of a dto.
Grid gets populated fine and dandy, but when I click on a column header to sort it, I get this error:
The data source 'ObjectDataSource3' does not support sorting with IEnumerable data. Automatic sorting is only supported with DataView, DataTable, and DataSet.
So how can I sort my gridview knowing that the only format coming out of my service layer is dto format?
I am pretty new with this stuff, so I would appreciate any help!!! Thank you!