Say I have an enum defined like this:
enum Status
{
[DisplayString("All is well")] ok,
[DisplayString("Operation Cancelled)] cancel
}
I have created a EnumValueConverter that returns the display string for each corresponding enum value.
If I assign a field's ValueConverter property to an instance of EnumValueConverterthe grid does not display the converted value returned from the EnumValueConverter. However, if the DisplayString does not contain a white space, values are displayed in the grid.
Any ideas on how to deal with this problem?
That did it, thank you.
Hello,
I have been looking into your question and in case that you use the converter in order to display some string value instead of empty one you need to set ‘EditAsType’ of the field to string like e.g. :
<igWPF:Field Name="Date" Converter="{Binding Source={StaticResource con}}" Label="Date">
<igWPF:Field.Settings>
<igWPF:FieldSettings EditAsType="{x:Type sys:String}" />
</igWPF:Field.Settings>
</igWPF:Field>
If you need any further assistance on this matter, feel free to ask.
another picture.