I am having a problem using filtering with a column which has a DataTypeConverter specified.
My object has a bool value which I have bound to a text box column. I use a TypeConverter to convert this bool to a string (and back); true converts to "group", false converts to "individual". This works fine except when I try to use filtering. I chose "equals" and entered "individual"; I expected my type converter to be called so it could convert "invidual" to false, but the type converter was not getting called at all. When I entered "false" into the filter my type converter was finally called but was passed a bool; it wanted me to convert bool to bool?!. It seems that the filter is converting the string to bool itself and not using my type converter. After I typed in "false" the filter showed "Equals: individual" and seemed to work correctly.
This behavior is a problem since I cannot ask my end users to type in "true" and "false" and remember which maps to which display value. It seems like not using my specified TypeConverter to convert the string back to the match value is a bug.
Can you suggest a work around? Will this be fixed?
My object has a bool value which I have bound to a text box column. I use a TypeConverter to convert this bool to a string (and back); true converts to "group", false converts to "individual". This works fine except when I try to use filtering. I chose "equals" and entered "individual"; I expected my type converter to be called so it could convert "invidual" to false, but the type converter was not getting called at all. When I entered "false" into the filter my type converter was finally called but was passed a bool; it wanted me to convert bool to bool?!. It seems that the filter is converting the string to bool itself and not using my type converter. After I typed in "false" the filter showed "Equals: individual" and seemed to work correctly.
This behavior is a problem since I cannot ask my end users to type in "true" and "false" and remember which maps to which display value. It seems like not using my specified TypeConverter to convert the string back to the match value is a bug.
Can you suggest a work around? Will this be fixed?