Conclusion

In this chapter, we examined the grid controls available in ASP.NET—DataGrid and the newer GridView. Grids are a type of component that all Web applications need to employ in one shape or another. All Web applications, in fact, at a certain point of their life cycle are called to display data. More often than not, this data is in tabular format.

As long as the data to be displayed can be articulated in rows and columns, a grid is ideal for displaying it. Such controls provide facilities to select and edit single rows, page through a bound data source, and sort views. In addition, you can customize all the cells in a column by using any data-bound template made of any combination of HTML and ASP.NET text. To top it off, a fair number ...

Get Programming Microsoft® ASP.NET 3.5 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.