Flex DataGrid 鼠标悬停行具有渐变背景
我有一个 DataGrid,需要在鼠标悬停在行上时显示渐变背景。我已经为每一列创建了项目渲染器,并且渐变显示了鼠标悬停的单个单元格,但不是整行。当鼠标悬停在其中一个单元格上时,如何使整行显示渐变?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已经子类化了
DataGrid
,并深入研究了ListBase
并重写了受保护的函数drawRowHighlightIndicator()
。您将使用图形类来绘制您需要的内容,因此请深入了解如何做到这一点。You have subclass the
DataGrid
and delve into theListBase
and override theprotected function drawRowHighlightIndicator()
. You'll be using the graphics class to draw what you need, so bone up on how to do that.