DataGridViewCell::EditType Property
.NET Framework (current version)
Gets the type of the cell's hosted editing control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: