Hi,
We recently updated to the latest version of the rad controls (2008.2.723) and have encountered a new issue. I have a grid in SharePoint that is used to display some information on different SPField objects. So in my code i set the datasource of the grid to a List<SPField>. The issue seems to be that the grid tries to cast the objects in that list as the type of the first object, instead of casting it as the type the list contains. For example: I have a List<SPField> with 3 fields in it. Field 1 is of Type1, Field 2 is of Type2, Field 3 is of Type3. The error that is displayed is that it was unable to cast object of Type2 to type Type1. Why is it even casting these objects as their own type if i have it in a List<SPField>? Shouldn't it only be casting these objects as SPField?
We recently updated to the latest version of the rad controls (2008.2.723) and have encountered a new issue. I have a grid in SharePoint that is used to display some information on different SPField objects. So in my code i set the datasource of the grid to a List<SPField>. The issue seems to be that the grid tries to cast the objects in that list as the type of the first object, instead of casting it as the type the list contains. For example: I have a List<SPField> with 3 fields in it. Field 1 is of Type1, Field 2 is of Type2, Field 3 is of Type3. The error that is displayed is that it was unable to cast object of Type2 to type Type1. Why is it even casting these objects as their own type if i have it in a List<SPField>? Shouldn't it only be casting these objects as SPField?