Class DataGridViewExComboBoxEditingControl
- Namespace
- ExControls
- Assembly
- ExControls.dll
Represents the hosted combo box control in a DataGridViewComboBoxCell.
[ComVisible(true)]
public class DataGridViewExComboBoxEditingControl : ExComboBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, IThemeable, IDataGridViewEditingControl
- Inheritance
-
DataGridViewExComboBoxEditingControl
- Implements
- Inherited Members
- Extension Methods
Constructors
DataGridViewExComboBoxEditingControl()
Initializes a new instance of the DataGridViewComboBoxEditingControl class.
public DataGridViewExComboBoxEditingControl()
Properties
EditingControlDataGridView
Gets or sets the DataGridView that contains the combo box control.
[Browsable(false)]
public virtual DataGridView? EditingControlDataGridView { get; set; }
Property Value
- DataGridView
The DataGridView that contains the DataGridViewComboBoxCell that contains this control; otherwise, null if there is no associated DataGridView.
EditingControlFormattedValue
Gets or sets the formatted representation of the current value of the control.
[Browsable(false)]
[AllowNull]
public virtual object EditingControlFormattedValue { get; set; }
Property Value
- object
An object representing the current value of this control.
EditingControlRowIndex
Gets or sets the index of the owning cell's parent row.
[Browsable(false)]
public virtual int EditingControlRowIndex { get; set; }
Property Value
- int
The index of the row that contains the owning cell; -1 if there is no owning row.
EditingControlValueChanged
Gets or sets a value indicating whether the current value of the control has changed.
[Browsable(false)]
public virtual bool EditingControlValueChanged { get; set; }
Property Value
EditingPanelCursor
Gets the cursor used during editing.
public virtual Cursor EditingPanelCursor { get; }
Property Value
RepositionEditingControlOnValueChange
Gets a value indicating whether the cell contents need to be repositioned whenever the value changes.
public virtual bool RepositionEditingControlOnValueChange { get; }
Property Value
Methods
ApplyCellStyleToEditingControl(DataGridViewCellStyle)
Changes the control's user interface (UI) to be consistent with the specified cell style.
public virtual void ApplyCellStyleToEditingControl(DataGridViewCellStyle dataGridViewCellStyle)
Parameters
dataGridViewCellStyleDataGridViewCellStyleThe DataGridViewCellStyle to use as a pattern for the UI.
EditingControlWantsInputKey(Keys, bool)
Determines whether the specified key is a regular input key that the editing control should process or a special key that the DataGridView should process.
public virtual bool EditingControlWantsInputKey(Keys keyData, bool dataGridViewWantsInputKey)
Parameters
keyDataKeysA bitwise combination of Keys values that represents the key that was pressed.
dataGridViewWantsInputKeybooltrue to indicate that the DataGridView control can process the key; otherwise, false.
Returns
- bool
true if the specified key is a regular input key that should be handled by the editing control; otherwise, false.
GetEditingControlFormattedValue(DataGridViewDataErrorContexts)
Retrieves the formatted value of the cell.
public virtual object GetEditingControlFormattedValue(DataGridViewDataErrorContexts context)
Parameters
contextDataGridViewDataErrorContextsA bitwise combination of DataGridViewDataErrorContexts values that specifies the data error context.
Returns
OnDropDown(EventArgs)
Raises the DropDown event.
protected override void OnDropDown(EventArgs e)
Parameters
OnSelectedIndexChanged(EventArgs)
Raises the SelectedIndexChanged event.
protected override void OnSelectedIndexChanged(EventArgs e)
Parameters
PrepareEditingControlForEdit(bool)
Prepares the currently selected cell for editing.
public virtual void PrepareEditingControlForEdit(bool selectAll)