asp.net.ph

DataTable Constructor

System.Data Namespace   DataTable Class


Initializes a new instance of the DataTable class.

Overload List

1. Initializes a new instance of the DataTable class with no arguments.

2. Intitalizes a new instance of the DataTable class with the specified table name.

3. Initializes a new instance of the DataTable class with the SerializationInfo and the StreamingContext.


[ C# ] protected DataTable ( SerializationInfo, StreamingContext );

[ C++ ] protected: DataTable ( SerializationInfo*, StreamingContext );

[ JScript ] protected function DataTable ( SerializationInfo, StreamingContext );

Example

The following example initializes a new DataTable, adds several DataColumn objects that accommodate varying data types, adds a given number of DataRow objects, then displays it in a DataGrid control.

NOTE: This example uses one of the overloaded versions of the DataTable constructor. For other examples that may be available, see the individual overload topics.

 Show me 

See Also

DataTable Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 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