I'm using Visual Studio 2010 to design a simple WPF application.
I created a simple class, with some Enum property, and added the class as a new data source, then dragged and dropped it from the Data sources window as a DataGrid. The result is a data grid that works properly, except for enum handling. Obviously, I want
enums to be displayed as combo boxes, so I set the option.
The problem is: I get a combo box column, but it is NOT populated with the Enum's values, instead only the current value is displayed and the user can't change it.
This behavior seems completely useless to me. Am I doing something wrong here, or is there another explanation for this? Why isn't the designer handling enums in a sensible way?
Another problem is, if I choose to drag the class as "Details". Again everything works except enums. I get a standalone combobox, but it displays the values of the property from the entire list, and choosing a different item in the combobox changes
the active bound property. Once again, useless behavior - I expect the designer to create a combobox populated with values from the Enum, and for it to act like every other control in a master-details relationship - choosing a different value changes the state
of the current item.
View Complete Post