DataGridView::EditingControl Property
.NET Framework (current version)
Gets the control hosted by the current cell, if a cell with an editing control is in edit mode.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
If the cell is not in edit mode or the cell type does not accommodate an editing control, this property returns null.
The following code example illustrates how to use this property in an overridden method of a custom cell type. In the example, a reference to the editing control is retrieved, cast to a custom editing control type, and then populated with the current value of the cell.
This example is part of a larger example available in How to: Host Controls in Windows Forms DataGridView Cells.
.NET Framework
Available since 2.0
Available since 2.0
Show: