点击的AdvancedDataGrid细胞并改变其颜色 [英] click on AdvancedDataGrid cell and change its color

查看:191
本文介绍了点击的AdvancedDataGrid细胞并改变其颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题(?):什么是编程方式更改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.

我发现<一href="http://butterfliesandbugs.word$p$pss.com/2007/07/11/using-an-itemrenderer-to-change-the-background-of-a-datagrid-cell/"相对=nofollow>这篇大文章这让我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.

这篇关于点击的AdvancedDataGrid细胞并改变其颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆