For some reason, the CurrentCellChanged() event handler is triggered twice:
(a) When the user clicks in a cell. I would like to ignore that one.
(b) When the user has edited the cell content. This is the one I want to catch.
How can I tell the two calls apart?
TIA
What you want to use is the CellEditEnding
event instead.
See more info here: http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.celleditending(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.