I have a class that implements ICollection, IEnumerable. It contains a type dataset representing a collection of entities. The class implements an indexer that returns a single instance of a class that represents a row in the type dataset. That class exposes public properties. I can bind the "plural" class to any databound control (datagrid, gridview, dropdownlist, etc) and it works as expected. I can so things like:
foreach (Customer c in Customers)
{
Console.Print c.Name;
}
I can bind it also to RadGrid using Advanced Binding and the NeedsDataSource event and it binds the data find including responding to the DetailTableDataBind event correctly. However, the automatic sorting fails with a message indicating it can't find the column name selected in the sort. I verified the datafield and sortexpression declarations are correctly mapped.
When I bind to a Datatable.Dataview, of similar data, all works fine. I think this has something to do with the switch to using Linq under the covers in the sort handler methods.
Can you advise?
foreach (Customer c in Customers)
{
Console.Print c.Name;
}
I can bind it also to RadGrid using Advanced Binding and the NeedsDataSource event and it binds the data find including responding to the DetailTableDataBind event correctly. However, the automatic sorting fails with a message indicating it can't find the column name selected in the sort. I verified the datafield and sortexpression declarations are correctly mapped.
When I bind to a Datatable.Dataview, of similar data, all works fine. I think this has something to do with the switch to using Linq under the covers in the sort handler methods.
Can you advise?