DataTable.ToString Method ()
.NET Framework (current version)
Gets the TableName and DisplayExpression, if there is one as a concatenated string.
Assembly: System.Data (in System.Data.dll)
Return Value
Type: System.StringA string consisting of the TableName and the DisplayExpression values.
Gets the TableName and DisplayExpression for the DataTable.
The following example returns the TableName and DisplayExpression using the ToString method.
.NET Framework
Available since 1.1
Available since 1.1
Show: