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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.