Let's say I have to display green button icon for column value "1", yellow for column value "2" and red for "3" . I have two requirements
1. Column shows both value and its associated icon. ie. Column value shows "1" <green button icon>, "2" <yellow button icon>, "3" <red button icon>
2. Columns shows only the icon representing the value
Questions:
a. From reading the forum, valuebasedappearance seems to help me achieve both requirements very easily. Is that correct?
b. How would I achieve sorting of the columns in requirement #1 and requirement #2 ?
a) I don't think so. I think you could acheive option 1 here, but not option 2. The ValueBasedAppearance doesn't give you any good way to hide the text of the cell as far as I know.
It sounds to me like you just need a ValueList on the column and you can assign an Appearance to the ValueListItems on the list.The cell will pick up the appearance of the selected item on the ValueList. The ValueList.DisplayStyle allows you to show just a picture with no text.
b) You don't have to do anything. The column will be sorted by it's displayed text.
Hi Mike,
Can you point me towards an example where you put this together?
I want to do something similar, I want to display an image in the cell and no text and don't really understand how to use the valuelist to achieve it? The image would be different depending on the content, for instance if the value pulled back is 1 then display a red arrow image, 2 display a orange arrow etc...
Any pointers would be welcome.
Cheers,John
Mike Saltzman"]You don't have to do anything. The column will be sorted by it's displayed text
Mike, for the requirement where I have to display only icons, how would I achieve the sorting?