Export (0) Print
Expand All
Expand Minimize

DataGridView.ShowEditingIcon Property

Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

member ShowEditingIcon : bool with get, set

Property Value

Type: System.Boolean
true if the editing glyph is visible; otherwise, false. The default is true.

The row header will display an editing glyph that looks like a pencil when the current cell is in edit mode and the user has made changes to the cell. The editing glyph is colored by using the ForeColor property of the row header cell. The glyph is not rendered if there is not enough space to display it completely. For example, if the row header cell has its Value property set, the glyph is removed if there is not enough room for both the text and glyph.

The display of the editing glyph is controlled by the value of the IsCurrentRowDirty property in virtual mode. Otherwise, it is controlled by the IsCurrentCellDirty property.

The standard glyph is not publicly exposed. To customize the glyph, you can create a custom DataGridViewRowHeaderCell class.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

© 2014 Microsoft