Skip to main content
Version: 4.1

IDataGridViewEditingControl

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

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

public interface IDataGridViewEditingControl

Properties​

Instance member DataGridView​

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

Instance member Invalid​

Boolean: Returns the invalid state of the editing control.

Methods​

Instance member ApplyCellStyleToEditingControl(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 member GetEditingControlFormattedValue()​

Retrieves the formatted value of the cell.

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

Instance member PrepareEditingControlForEdit(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.