Getting Started with the DataGrid Web Control

Recall that a database table can be thought of as a two-dimensional grid. The columns of the table specify the attributes for the data stored in the table, whereas each row represents a particular instance of information. For example, in the Customers table, there are columns for each of the customer attributes: Name, ZipCode, Phone, and so on. Each customer is represented by a single row in the table.

Furthermore, when executing a SELECT query, a two-dimensional grid is returned. For example, the query

SELECT Name, Phone
FROM Customers

returns a two-dimensional grid with two columns (one for Name and one for Phone) with a row for each row in the Customers table.

A natural way to display the two-dimensional ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.