Apologies if this has been answered previously, my search didn't turn up anything.
Here's my situation. Inside of a wingrid column (bound datatype is of type decimal), I'm in need of having the ability to conditionally show an image, image + text, or just text all within the same column *while still maintaining the ability to access the cell's bound decimal value via the value property*.
I can successfully show text or text + image (i simply set the image property on the cell's appearance and left justify the image while right justifying the value). What I can't find is a good way to ONLY show the image (again while still maintaining the cell's decimal value).
Approaches I have tried:
1) For that cell only, set the cell's forecolor to the backcolor. Works except that I ran into issues with coloring the selection colors as well and in the end found this approach too cumbersome.
2) Use a drawfilter to intercept the drawing of that cell's forecolor. Because we use our own custom editors for cells, it proved difficult to find the correct component to intercept on draw.
Both 1&2 could probably be made to work but feel like a *lot* more work than is probably necessary to solve the problem. Is there an easier solution I'm overlooking.
Christopher Rowland
How to get and display image in grid from the DataBase?