Gets the hosted TextBox control.
[Visual Basic] Overridable Public ReadOnly Property TextBox As TextBox [C#] public TextBox TextBox {virtual get;} [C++] public: __property virtual TextBox* get_TextBox(); [JScript] public function get TextBox() : TextBox;
A TextBox control hosted by the column.
The following example changes the background color of the hosted TextBox control.
[Visual Basic]
Private Sub SetTextBoxBgColor() Dim myText As TextBox Dim dgeCol As DataGridTextBoxColumn ' Assuming there is a DataGridTextBoxColumn already created in the DataGrid control. Set dgeCol = DataGrid1.GridColumns(1) Set myText = dgeCol.Edit ' Change the background color. myText.BackColor = System.Drawing.Color.FromARGB(200,200,200) End Sub
DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | TextBox