System.Data Namespace DataTable Class
Returns the TableName and DisplayExpression, if there is one as a concatenated string.
[ VB ]Overrides Public Function ToString ( ) As String [ C# ] Public override String ToString ( ); [ C++ ] Public: 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.
private void PrintToString ( DataSet ds ) { foreach ( DataTable myTable in ds.Tables ) { Response.Write ( myTable.ToString ( ) ); } }
Private Sub PrintToString ( ds As DataSet ) Dim myTable As DataTable For Each myTable In ds.Tables Response.Write ( myTable.ToString ( ) ) Next End Sub
DataTable Members DisplayExpression TableName
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph