Table of Contents

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

bool

true if the value of the control has changed; otherwise, false.

EditingPanelCursor

Gets the cursor used during editing.

public virtual Cursor EditingPanelCursor { get; }

Property Value

Cursor

A Cursor that represents the cursor image used by the mouse pointer during editing.

RepositionEditingControlOnValueChange

Gets a value indicating whether the cell contents need to be repositioned whenever the value changes.

public virtual bool RepositionEditingControlOnValueChange { get; }

Property Value

bool

false in all cases.

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

dataGridViewCellStyle DataGridViewCellStyle

The 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

keyData Keys

A bitwise combination of Keys values that represents the key that was pressed.

dataGridViewWantsInputKey bool

true 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

context DataGridViewDataErrorContexts

A bitwise combination of DataGridViewDataErrorContexts values that specifies the data error context.

Returns

object

An object that represents the formatted version of the cell contents.

OnDropDown(EventArgs)

Raises the DropDown event.

protected override void OnDropDown(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

protected override void OnSelectedIndexChanged(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

PrepareEditingControlForEdit(bool)

Prepares the currently selected cell for editing.

public virtual void PrepareEditingControlForEdit(bool selectAll)

Parameters

selectAll bool

true to select all of the cell's content; otherwise, false.