This question is locked. New answers and comments are not allowed.
Hi
Im am using Silverlight 4 in combination with Ria Services and the entity framework. My business objects have several enums, that I have exposed in partial shared classes that are accessible on the server and the client.
In the gridview, i want to display the enumeration values (or better the description strings) in a combobox. However, this does not work properly. These are the problems i stumbled over:
- When I bind the gridview-combobox colum to the enum property, the query throws an exception because the enum property cannot be part of the query.
- When I bind the gridview-combobox colum to the corresponding value property, the values are not displayd. (although I can add the enum values to the itemsSource property of the combobox, so that they appear when the combobox gets the focus. However, the value of the business-object is never displayed :-(
I ve been fiddling with IValueConverters etc. but with no success. I am sure this must work as this should be a rather common scenario.
I appreciate any help.
Greetings and thanks
Dan
Im am using Silverlight 4 in combination with Ria Services and the entity framework. My business objects have several enums, that I have exposed in partial shared classes that are accessible on the server and the client.
In the gridview, i want to display the enumeration values (or better the description strings) in a combobox. However, this does not work properly. These are the problems i stumbled over:
- When I bind the gridview-combobox colum to the enum property, the query throws an exception because the enum property cannot be part of the query.
- When I bind the gridview-combobox colum to the corresponding value property, the values are not displayd. (although I can add the enum values to the itemsSource property of the combobox, so that they appear when the combobox gets the focus. However, the value of the business-object is never displayed :-(
I ve been fiddling with IValueConverters etc. but with no success. I am sure this must work as this should be a rather common scenario.
I appreciate any help.
Greetings and thanks
Dan