October 2010
Intermediate to advanced
1920 pages
73h 55m
English
DataTable ObjectThe DataTable object represents an in-memory database table. You can add rows to a DataTable with a SqlDataAdapter, with a SqlDataReader, with an XML file, or programmatically. For example, the page in Listing 19.28 builds a new DataTable programmatically. The contents of the DataTable then display in a GridView control (see Figure 19.14).
Figure 19.14. Displaying a DataTable that was built programmatically.

Listing 19.28. ShowDataTableProgram.aspx

In Listing 19.28, a DataTable with the following three columns is ...