Hello all,
Here's my scenario : I have a column named "Priority" which is binded to an integer field(ids from 1 to 4, where 1 = urgent, 4 = low priority). Priorities are represented by icons (white, yellow, green, red) and a description (eg : "(red bullet) Urgent"). Thus I have created a ValueList that is associated to the Priority column, where DataValue corresponds to the ID and DisplayText corresponds to its description, and the icon is set with the Appearance.Image property. 44
Up to now, everything is alright : data rows show the good icon. When I enable row filtering, the dropdown shows correctly when in edit mode, and it filters correctly. However, as soon as the filter row loses focus, the priority cell (in the filter row) does not show the text representation of the priority anymore, but its value. So basically it shows "(icon) (id)". Is there something I am missing? i would like the display text to keep showing even when the dropdown does not have focus.
Thank you,
Hi Olivier,
I tried this out and it seems to work for me. My guess is that you are setting some property on the column or the filter cell that is causing the ValueList to be removed from the column when it loses focus and so the cell can't translate the DataValue into DisplayText any more. Maybe you are setting the FilterOperandStyle property on the column? If so, then you might needs to set the ValueList on the FilterCell to the same ValueList the column is using.
Hi Mike,
You are right, I didn't realize I was resetting the ValueList. Thank's for the hint!