Returns the TableName and DisplayExpression, if there is one as a concatenated string.
[Visual Basic] Overrides Public Function ToString() As String [C#] public override string ToString(); [C++] public: override String* ToString(); [JScript] public override function ToString() : String;
A string consisting of the TableName and the DisplayExpression values.
Returns the TableName and DisplayExpression for the DataTable.
The following example returns the TableName and DisplayExpression using the ToString method.
[Visual Basic]
Private Sub PrintToString(ds As DataSet) Dim t As DataTable For Each t In ds.Tables Debug.Print t.ToString Next End Sub
DataTable Class | DataTable Members | System.Data Namespace | DisplayExpression | TableName