Export (0) Print
Expand All

IDataGridViewEditingCell Interface

Defines common functionality for a cell that allows the manipulation of its value.

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

public interface class IDataGridViewEditingCell

The IDataGridViewEditingCell type exposes the following members.

  NameDescription
Public propertyEditingCellFormattedValueGets or sets the formatted value of the cell.
Public propertyEditingCellValueChangedGets or sets a value indicating whether the value of the cell has changed.
Top

  NameDescription
Public methodGetEditingCellFormattedValueRetrieves the formatted value of the cell.
Public methodPrepareEditingCellForEditPrepares the currently selected cell for editing
Top

This interface is implemented by classes such as DataGridViewCheckBoxCell that derive from DataGridViewCell and provide a user interface (UI) for specifying values without hosting an editing control. The UI in this case is displayed regardless of whether the cell is in edit mode.

Other cell types, such as DataGridViewButtonCell, provide a UI but do not store user-specified values. In this case, the cell type does not implement IDataGridViewEditingCell or host an editing control.

Cell types that display an editing control when the cell is in edit mode, such as DataGridViewTextBoxCell, do not implement IDataGridViewEditingCell but instead provide a companion class that implements IDataGridViewEditingControl. For example, DataGridViewTextBoxCell provides a DataGridViewTextBoxEditingControl that derives from the TextBox control and implements IDataGridViewEditingControl. In this case, the cell EditType property is set to a Type object representing the editing control type. For information about implementing IDataGridViewEditingControl, see How to: Host Controls in Windows Forms DataGridView Cells.

.NET Framework

Supported in: 4.5.3, 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.

Show:
© 2014 Microsoft