Just getting started with Telerik controls...
I need to get the behavior of the RadDropDownList for a column in a GridView.
For the RadDropDownList, I am using databinding to link the SelectedValue to the property of a Business Object or Entity.
I'm trying the same approach in the GridView but no luck.
I have added a GridViewComboBox column and set its DataSource to the list of entities I want in the drop down list. That works fine, and when displaying data the correct item is highlighted. However, trying to pick a new item from the list gives this error: "Object of type 'System.String' cannot be converted to 'mynamespace.Product'.
I can see in the docs it wants me to set the ValueMember to the property on the data source that I want to use, but I don't want to use a property, I want the whole object. How can I do this??
I found this other post and the poster was in the same situation as I am:
http://www.telerik.com/community/forums/winforms/gridview/csla-bindinglist-with-default-objects.aspx
It is from 2010 - so has anything changed or is it still not supported? Do I still have to make up some kind of workaround?
I need to get the behavior of the RadDropDownList for a column in a GridView.
For the RadDropDownList, I am using databinding to link the SelectedValue to the property of a Business Object or Entity.
I'm trying the same approach in the GridView but no luck.
I have added a GridViewComboBox column and set its DataSource to the list of entities I want in the drop down list. That works fine, and when displaying data the correct item is highlighted. However, trying to pick a new item from the list gives this error: "Object of type 'System.String' cannot be converted to 'mynamespace.Product'.
I can see in the docs it wants me to set the ValueMember to the property on the data source that I want to use, but I don't want to use a property, I want the whole object. How can I do this??
I found this other post and the poster was in the same situation as I am:
http://www.telerik.com/community/forums/winforms/gridview/csla-bindinglist-with-default-objects.aspx
It is from 2010 - so has anything changed or is it still not supported? Do I still have to make up some kind of workaround?