This question is locked. New answers and comments are not allowed.
Hi,
I am sure that I am missing something blindingly obvious, but, I want to (declaratively) use the GridDropDownColumn in my grid where both the Grid and the DropDown are bound to OpenAccessDataSources. The grid displays properly, but when I edit a row, I get the following error message.
The Declaration in the grid is as follows
The obvious problem being that the PoolId in the Class SPool is a string, and I presumably, want to make ListValueField refer to the instance of the Class that has been selected in the DDL.
Can someone point me in the right direction. I woudl liek to avoid code behind for this if I can (ese I end up writing quite a lot of it).
I am sure that I am missing something blindingly obvious, but, I want to (declaratively) use the GridDropDownColumn in my grid where both the Grid and the DropDown are bound to OpenAccessDataSources. The grid displays properly, but when I edit a row, I get the following error message.
Invalid cast from 'System.String' to 'MyNameSpace.SPool'.
The Declaration in the grid is as follows
<telerik:GridDropDownColumn DataField="SPool" |
HeaderText="Pool ID" SortExpression="SPool" UniqueName="SPool" |
DataSourceID="OpenAccessDataSourcePoolIDs" DropDownControlType="DropDownList" |
ListValueField="PoolId" ListTextField="PoolId" |
> |
The obvious problem being that the PoolId in the Class SPool is a string, and I presumably, want to make ListValueField refer to the instance of the Class that has been selected in the DDL.
Can someone point me in the right direction. I woudl liek to avoid code behind for this if I can (ese I end up writing quite a lot of it).