This question is locked. New answers and comments are not allowed.
Hi,
I have a GridViewComboBoxColumn which is bound to an indexed property like so:
This works fine except that I would like to use a Converter for the display value, so I have set the LookupValueConverter property on the column like this:
When this runs the values are not converted appropriately using the converter, instead it just uses the DisplayMemberPath property to determine the value to display. This behaviour is only when I am using the indexed property; if I use a normal property name for the binding it does use the converter as I expect.
Am I going about things the wrong way, or is this a bug?
Cheers
I have a GridViewComboBoxColumn which is bound to an indexed property like so:
<br>column.DataMemberBinding = new Binding("[prop" + item.ItemId + "]");This works fine except that I would like to use a Converter for the display value, so I have set the LookupValueConverter property on the column like this:
column.LookupValueConverter = new ResponseToStringConverter(){ Column = lookupColumn, ShowFullDescription = ShowingResponseDescriptions};When this runs the values are not converted appropriately using the converter, instead it just uses the DisplayMemberPath property to determine the value to display. This behaviour is only when I am using the indexed property; if I use a normal property name for the binding it does use the converter as I expect.
Am I going about things the wrong way, or is this a bug?
Cheers