Hi,
I have a column that has 4 different status values. Based on the value of each cell, I want to display a certain image. However, I don't want the text value to be displayed. I thought of just having two columns to achieve this, but I want to have a value in the image column to allow for proper sorting. Is there anyway that I can retain a cell's value, but display an image while hiding the text?
Thanks,
Jake
I used the transparent foreground alpha and it works perfectly. Thanks!!!
Actually, if you want to display the image in the bound cell and retain the value you could set the Cell.Appearance.Image to the appropriate image. Then set the CellAppearance.ForegroundAlpha = Transparent. This will cause the text to be transparent, effectively only showing the image while retaining the value for sorting purposes.
I would recommend adding an unbound column of type Image and setting the appropriate image in the InitializeRow event of the grid. You can solve the sorting problem by attaching a custom ISortComparer to the image column that sorts based on your logic.