This question is locked. New answers and comments are not allowed.
Hello,
I have a list of objects that are mapped to a table using Open Access. Each time a new object is added to the list it needs to be sorted using a custom comparison method. Normally I would just create an IComparer class and use List<>.Sort(IComparer<>), however, when I try to do this with the Open Access enhanced list I get this error:
Unable to cast object of type 'Telerik.OpenAccess.TrackedList`1[CJIS.Model.Charge]' to type 'System.Collections.Generic.List`1[CJIS.Model.Charge]'.
The TrackedList object does not have a Sort method. So how would I accomplish this?
Thank you.
I have a list of objects that are mapped to a table using Open Access. Each time a new object is added to the list it needs to be sorted using a custom comparison method. Normally I would just create an IComparer class and use List<>.Sort(IComparer<>), however, when I try to do this with the Open Access enhanced list I get this error:
Unable to cast object of type 'Telerik.OpenAccess.TrackedList`1[CJIS.Model.Charge]' to type 'System.Collections.Generic.List`1[CJIS.Model.Charge]'.
The TrackedList object does not have a Sort method. So how would I accomplish this?
Thank you.