DataGridViewTextBoxEditingControl
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a TextBox control that can be hosted in a DataGridViewTextBoxCell cell when the cell's WrapMode is set to False.
- C#
- VB.NET
public class DataGridViewTextBoxEditingControl : TextBox, IDataGridViewEditingControl
Public Class DataGridViewTextBoxEditingControl
Inherits TextBox
Implements IDataGridViewEditingControl
Constructors
DataGridViewTextBoxEditingControl()
Initializes a new instance of DataGridViewTextBoxEditingControl.
Properties
DataGridView
DataGridView: Returns or sets the DataGridView that contains the text box 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 currently selected cell for editing.
| Parameter | Type | Description |
|---|---|---|
| selectAll | Boolean | true to select the cell contents; otherwise, false. |
Implements
| Name | Description |
|---|---|
| IDataGridViewEditingControl | Defines common functionality for controls that are hosted within cells of a DataGridView. |
| IBindableComponent | Bindable components implement this interface. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| ILabel | Provides access to the LabelWrapper associated with the controls that implement this interface. |
| IReadOnly | Provides access to the ReadOnly property for coontrols that support the read-only mode. |
| IModified | Provides access to the Modified property and ModifiedChanged event for controls that implement this interface. |
| IValidation | Provides access to the validation events and properties property for controls that support validation. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |