Posted 8 September 2017, 12:38 pm EST
Background (using Spread for WinForms 2.5): I'm trying to create a gradient header like in the Gradient sample included with Spread. What I noticed when running the sample was that when an entire column is selected, the header is drawn just like any other header (on my system, with a blue-gray color). What I would prefer to do is continue drawing the gradient but shaded with the highlight color.
PaintCell() receives the Boolean isSelected parameter, but since the sample code wasn't testing this and therefore was clearly trying to draw the header regardless of the value of this parameter, I figured trying to use it would be useless, and it was. Is there a way to control how row and columns headers display themselves when they too need to display in a selected state?
Since I'll be moving to version 3.0 soon, is this entire question moot? I noticed that there's apparently a GradientHeaderRenderer class in that one.