System.Windows.Forms.DataGridTextBoxColumn Class

Hosts a System.Windows.Forms.TextBox control in a cell of a System.Windows.Forms.DataGridColumnStyle for editing strings.

See Also: DataGridTextBoxColumn Members


public class DataGridTextBoxColumn : DataGridColumnStyle


The System.Windows.Forms.DataGridTextBoxColumn class derives from the abstract class System.Windows.Forms.DataGridColumnStyle. At run time, the System.Windows.Forms.DataGridTextBoxColumn hosts a System.Windows.Forms.DataGridTextBox control that allows users to edit text.

Special properties added to the class include DataGridTextBoxColumn.Format, and DataGridTextBoxColumn.HideEditBox. These properties allow you to access the hosted System.Windows.Forms.DataGridTextBox control and its attributes, and set the format for displaying values.

If the data source is a System.Data.DataTable containing System.Data.DataColumn objects, the System.Data.DataColumn.DataType property of the System.Data.DataColumn should be set to a data type that can logically be edited in a text box control. The following data types are automatically associated with a System.Windows.Forms.DataGridTextBoxColumn : byte, DateTime, decimal, double, short, int, long, ushort, uint, ulong, float, and string.

[Visual Basic]


The following types are not fully supported by Visual Basic: DateTime, ushort, uint, ulong, and TimeSpan. (Operators are not allowed.)


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