IDataGridViewEditingControl
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Defines common functionality for controls that are hosted within cells of a DataGridView.
- C#
- VB.NET
public interface IDataGridViewEditingControl
Public Interface IDataGridViewEditingControl
Properties
DataGridView
DataGridView: Returns or sets the DataGridView that contains the cell.
Invalid
Boolean: Returns the invalid state of the editing control.
Methods
ApplyCellStyleToEditingControl(style)
Adapts the edit control's properties to be consistent with the specified cell style.
| Parameter | Type | Description |
|---|---|---|
| style | DataGridViewCellStyle | The DataGridViewCellStyle in effect for the cell entering edit mode. |
GetEditingControlFormattedValue()
Retrieves the formatted value of the cell.
Returns: String. The formatted version of the cell's value.
PrepareEditingControlForEdit(selectAll)
Prepares the edit control or the cell for editing.
| Parameter | Type | Description |
|---|---|---|
| selectAll | Boolean | true to select all of the cell's content; otherwise, false. |
Implemented By
| Name | Description |
|---|---|
| DataGridViewComboBoxEditingControl | Represents a ComboBox control that can be hosted in a DataGridViewComboBoxCell. |
| DataGridViewDateTimePickerEditingControl | Represents a DateTimePicker control that can be hosted in a DataGridViewDateTimePickerCell. |
| DataGridViewMaskedTextBoxEditingControl | Represents a MaskedTextBox control that can be hosted in a DataGridViewMaskedTextBoxCell cell. |
| DataGridViewNumericUpDownEditingControl | Represents a NumericUpDown control that can be hosted in a DataGridViewNumericUpDownCell. |
| DataGridViewTextBoxEditingControl | Represents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False. |