DataGridViewCell::EditType Property

 

Gets the type of the cell's hosted editing control.

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

public:
[BrowsableAttribute(false)]
property Type^ EditType {
	virtual Type^ get();
}

Property Value

Type: System::Type^

A Type representing the DataGridViewTextBoxEditingControl type.

A derived cell type overrides this property to return the type of its hosted editing control. If the cell does not have an editing control, as with DataGridViewButtonCell, the EditType property returns null.

The following code example demonstrates how to override the EditType property in a CalendarCell class that derives from DataGridViewTextBoxCell. This example is part of a larger code example provided in How to: Host Controls in Windows Forms DataGridView Cells.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: