Occurs when the DataGridView.VirtualMode property of a System.Windows.Forms.DataGridView control is true and the cancels edits in a row.
When the System.Windows.Forms.DataGridView is in virtual mode, changes are committed to the data cache at the cell level by default. The DataGridView.CancelRowEdit event can be used when implementing row-level transactions.
For more information about handling events, see Consuming Events.