Hi,
I'm trying to visualize an enumeration value in a xamDataGrid. Each enum value should have its own icon in the grid. When the user wants to change the value, he should be able to do this with a dropdownbox that shows all values as icons. However, when I apply a CellValuePresenter the EditorStyle is being ignored, which turns the column into a read-only column. I already encountered this problem before; see the following post:
http://es.infragistics.com/community/forums/p/77613/392127.aspx#392127
and I was able to fix this setting the ContentTemplate instead of the Template. But that was in an older version of infragistics, the problem now reoccurs in version 11.2.20112.2316
One other side note: I do want the grid to enter edit mode before the user can change the value. This is important for the rest of the architecture.
I added a sample application that demonstrates my problem. Any help is appreciated!
Regards, Stefan
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Excellent! Thank you.
Thank you for your post. I have been looking into it and I modified the sample you have sent us, so now it works as you want. Basically I set the XamComboEditor’s DisplayValueSource Property to be Value. This way the displayed value is of MyEnumeration type and the DataTemplate is applied correctly without breaking any of the built-in functionality. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
In the attached sample, the problem can be seen by de-commenting the XAML code block (CellValuePresenterStyle) in MainWindow.xaml