阅读背景:

如何捕获在c#中的DataGridView上触发“CellEndEdit”的击键?

来源:互联网 

I have a DataGridView that is set to EditOnF2. I do some special processing of data in the CellEndEdit eventhandler that sets the value of the cell. I still want the functionality of the EditOnKeystrokeOrF2 of reverting to the original value when the Esc key is pressed. Unfortunately, at the CellEndEdit eventhandler, I don't see a way to tell what caused the CellEndEdit event to be fired. I only want to change the value of the cell if the Esc key is not pressed. How can I tell if it was or not?I have a DataGridView that is set to EditOnF2.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: