DataGridViewEditingControlShowingEventArgs::Control Property
.NET Framework (current version)
The control shown to the user for editing the selected cell's value.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
To customize the display characteristics of the control, set the properties of the object returned by the CellStyle property rather than setting the properties of the control returned by the Control property.
The following code example illustrates the use of this property. In the example, a DataGridView::EditingControlShowing event handler adds a handler for a DataGridViewComboBoxEditingControl event. The editing control is cast to a ComboBox to handle the ComboBox::SelectedIndexChanged event.
.NET Framework
Available since 2.0
Available since 2.0
Show: