System.Windows.Forms.DataGridTextBox Class

Represents a System.Windows.Forms.TextBox control that is hosted in a System.Windows.Forms.DataGridTextBoxColumn.

See Also: DataGridTextBox Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.ComponentModel.ToolboxItem(false)]
[System.ComponentModel.DesignTimeVisible(false)]
[System.ComponentModel.DefaultProperty("GridEditName")]
public class DataGridTextBox : TextBox

Remarks

The System.Windows.Forms.DataGridTextBox and the System.Windows.Forms.DataGridTextBoxColumn work together so that users can directly edit values in a System.Windows.Forms.DataGrid control column. The System.Windows.Forms.DataGridTextBoxColumn derives from System.Windows.Forms.DataGridColumnStyle, and is designed to host the System.Windows.Forms.DataGridTextBox, which derives from the System.Windows.Forms.TextBox control.

In addition to the properties, events, and methods of the base control, you can call the Control.KeyPress and Control.KeyDown events with the Control.OnKeyPress(KeyPressEventArgs) and Control.OnMouseDown(MouseEventArgs) methods.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0