I have a DataGrid that needs to show a gradient background on mouseover of the row. I have created itemrenderers for each of the columns and the gradient shows up for the individual cell that is moused over, but not for the whole row. How do I get the whole row to show the gradient when mousing over one of the cells?
+1
A:
You have subclass the DataGrid
and delve into the ListBase
and override the protected function drawRowHighlightIndicator()
. You'll be using the graphics class to draw what you need, so bone up on how to do that.
Robusto
2010-03-23 23:59:46
you lead me on the right track, but the function that needs overriding is drawHighlightIndicator
asawilliams
2010-03-24 17:32:40
I have drawRowBackgrounds on the brain because I've been doing so much of that lately. Brain cramp. But you're right, for your purposes it's drawHighlightIndicator.
Robusto
2010-03-24 17:36:18
if you change your answer I can give you credit
asawilliams
2010-03-29 23:58:42
@asawilliams: Done :)
Robusto
2010-03-30 02:24:47