C# Class NClass.AssemblyImport.Controls.DataGridViewImageComboBoxEditingControl

Inheritance: ImageComboBox, IDataGridViewEditingControl
显示文件 Open project: gbaychev/NClass Class Usage Examples

Public Methods

Method Description
ApplyCellStyleToEditingControl ( System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void

Changes the control's user interface (UI) to be consistent with the specified cell style.

EditingControlWantsInputKey ( Keys keyData, bool dataGridViewWantsInputKey ) : bool

Determines whether the specified key is a regular input key that the editing control should process or a special key that the T:System.Windows.Forms.DataGridView should process.

GetEditingControlFormattedValue ( DataGridViewDataErrorContexts context ) : object

Retrieves the formatted value of the cell.

PrepareEditingControlForEdit ( bool selectAll ) : void

Prepares the currently selected cell for editing.

Protected Methods

Method Description
OnSelectedIndexChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.ComboBox.SelectedIndexChanged event.

Method Details

ApplyCellStyleToEditingControl() public method

Changes the control's user interface (UI) to be consistent with the specified cell style.
public ApplyCellStyleToEditingControl ( System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle The to use as the model for the UI.
return void

EditingControlWantsInputKey() public method

Determines whether the specified key is a regular input key that the editing control should process or a special key that the T:System.Windows.Forms.DataGridView should process.
public EditingControlWantsInputKey ( Keys keyData, bool dataGridViewWantsInputKey ) : bool
keyData Keys A that represents the key that was pressed.
dataGridViewWantsInputKey bool true when the wants to process the in ; otherwise, false.
return bool

GetEditingControlFormattedValue() public method

Retrieves the formatted value of the cell.
public GetEditingControlFormattedValue ( DataGridViewDataErrorContexts context ) : object
context DataGridViewDataErrorContexts A bitwise combination of values that specifies the context in which the data is needed.
return object

OnSelectedIndexChanged() protected method

Raises the E:System.Windows.Forms.ComboBox.SelectedIndexChanged event.
protected OnSelectedIndexChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
return void

PrepareEditingControlForEdit() public method

Prepares the currently selected cell for editing.
public PrepareEditingControlForEdit ( bool selectAll ) : void
selectAll bool true to select all of the cell's content; otherwise, false.
return void