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
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 used the transparent foreground alpha and it works perfectly. Thanks!!!
Try it for a column of type boolean.
Ah, that's a different story. By default, the CheckBox is drawn using Theming. So you would have to set both ThemedElementAlpha and ForegroundAlpha to Transparent.
That would not be any different in any older or newer version of the grid, though.
If you want to use images in a CheckBox column, you'd probably be better off using the GlyphInfo, anyway. Or a CheckEditor in Custom style.
Awesome, thanks.
Interesting.. the Transparent Alphas work in the designer but then when the app is run, they are opaque. Ideas?
matthouston23 said: Interesting.. the Transparent Alphas work in the designer but then when the app is run, they are opaque. Ideas?
Sorry, please disregard. I think there's still a problem, but I'm having trouble nailing it down.. Thanks
matthouston23 said:Shouldn't programmatic settings override whatever is set in the ISL?
No, that would make the ISL files pretty useless for any existing application because you would have to modify the code to remove any appearance-related code to get the isl to work. Also, some controls have default appearance info that would be impossible to override.
Actually, it's a bit complicated. The isl file will override any general settings that apply to large areas of a control: Application-level settings.
Smaller, more targetting appearances, such as the Appearance on an individual cell will override the isl.
All of this is, of course, the default behavior, but there's a property called ResolutionOrder on the ComponentRole in the isl so you could change the behavior, too.
Turned out my ISL file was causing the problem. My ThemedElementAlpha was set to Opaque in there.
Shouldn't programmatic settings override whatever is set in the ISL?