संपादित करें

इसके माध्यम से साझा किया गया


DataGridView.ShowEditingIcon Property

Definition

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

public:
 property bool ShowEditingIcon { bool get(); void set(bool value); };
public bool ShowEditingIcon { get; set; }
member this.ShowEditingIcon : bool with get, set
Public Property ShowEditingIcon As Boolean

Property Value

true if the editing glyph is visible; otherwise, false. The default is true.

Remarks

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.

Applies to

See also