简体   繁体   中英

WPF: Change GridView cell colors few second when differ in values

When the gridview cell's value change, I want to change the background color for few seconds to notify users. How to implement. I can change the background color when the value is changed. But I don't know how to change it back after few seconds.

I think you can use a timer in the cell change event handler, and set the background color twice. Once the highlighting color and at the end of timer, normal background color.

Here's a full impementation of CellValueChanged on DataGriewView. Check this out once.

https://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellvaluechanged(v=vs.110).aspx

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