Skip to main content
Version: 3.5

IDataGridViewEditingControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Defines common functionality for controls that are hosted within cells of a DataGridView.

public interface IDataGridViewEditingControl

Properties​

Instance memberDataGridView​

DataGridView: Returns or sets the DataGridView that contains the cell.

Instance memberInvalid​

Boolean: Returns the invalid state of the editing control.

Methods​

Instance memberApplyCellStyleToEditingControl(style)​

Adapts the edit control's properties to be consistent with the specified cell style.

ParameterTypeDescription
styleDataGridViewCellStyleThe DataGridViewCellStyle in effect for the cell entering edit mode.

Instance memberGetEditingControlFormattedValue()​

Retrieves the formatted value of the cell.

Returns: String. The formatted version of the cell's value.

Instance memberPrepareEditingControlForEdit(selectAll)​

Prepares the edit control or the cell for editing.

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

Implemented By​

NameDescription
DataGridViewComboBoxEditingControlRepresents a ComboBox control that can be hosted in a DataGridViewComboBoxCell.
DataGridViewDateTimePickerEditingControlRepresents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell.
DataGridViewMaskedTextBoxEditingControlRepresents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell.
DataGridViewNumericUpDownEditingControlRepresents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell.
DataGridViewTextBoxEditingControlRepresents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False.