Using a DataGrid to Display Information about a Particular Customer

In the previous hour all of our DataGrid examples used a DataGrid to display information about all of the customers in the Customers database table. However, this would be impractical if the Customers table had thousands of records or more. More likely than not, the person visiting the Web page is only interested in viewing information about one particular customer. Rather than force the user to have to wade through all of the customers, it would be helpful to display just the customer information the user is interested in.

In order to accomplish this, we will use the DataGrid just like we did in the examples in the previous hour, “Displaying Data with the DataGrid Web Control ...

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.