Gets a value indicating whether the current cell has uncommitted changes.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
When the DataGridView is not bound to data, the cell edit is considered committed when the user moves to another cell.
If row headers are visible, a pencil glyph is present in the header for the row that contains a cell with uncommitted changes.
If is true and the current cell hosts an editing control, you can retrieve it through the EditingControl property.
The following code example uses the property to determine whether to commit a cell value and raise the CellValueChanged event from a handler for the CurrentCellDirtyStateChanged event. This code example is part of a larger example provided in How to: Disable Buttons in a Button Column in the Windows Forms DataGridView Control.
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.