简体   繁体   中英

click on AdvancedDataGrid cell and change its color

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, ie the specific cell needs to render differently from the standard highlight that comes with being part of the selected line.

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

thank you for your help!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM