Occurs when the value of a cell changes.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
The event occurs when the user-specified value is committed, which typically occurs when focus leaves the cell.
In the case of check box cells, however, you will typically want to handle the change immediately. To commit the change when the cell is clicked, you must handle the DataGridView::CurrentCellDirtyStateChanged event. In the handler, if the current cell is a check box cell, call the DataGridView::CommitEdit method and pass in the Commit value.
Rows in the control are not automatically sorted when a cell value is changed. To sort the control when the user modifies a cell, call the Sort method in a event handler.
For more information about handling events, see Consuming Events.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.