点击的AdvancedDataGrid细胞并改变其颜色细胞、颜色、AdvancedDataGrid

2023-09-08 15:27:22 作者:毛主席夸涐帅

简单的问题(?):什么是编程方式更改ADG单元格的样式最近被用户点击的最简单的方法?重要提示:我假设细胞不能编辑和选择模式是singleRow,即特定的细胞需要从附带为所选线的一部分标准的亮点呈现不同

simple (?) question: what's the easiest way to programmatically change the style of an ADG cell most recently clicked by the user? Important note: I'm assuming cells not to editable and the selection mode to be singleRow, i.e. the specific cell needs to render differently from the standard highlight that comes with being part of the selected line.

我发现这篇大文章这让我pretty的接近,但我有点卡住了。

I've found this great article that gets me pretty close, but I'm a bit stuck.

感谢您的帮助!

推荐答案

没关系 - 我想它了。我听的助理总干事的itemClick事件找出哪个单元已经被点击了,然后调整了code从上面唯一的颜色已经被点击单元格中的文章。

Never mind - I figured it out. I listen to the itemClick event on the ADG to figure out which cell has been clicked on, and then tweaked the code from the article above to only color the cell that has been clicked on.