NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGridTextBoxColumn.TextBox

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;

Property Value

A TextBox control hosted by the column.

Example [Visual Basic]

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

See Also

DataGridTextBoxColumn Class | DataGridTextBoxColumn Members | System.WinForms Namespace | TextBox