GridView control is the workhorse of ASP.NET Framework. It is one of the most feature-rich and complicated of all the ASP.NET controls. The
GridView control enables you to display, select, sort, page, and edit data items such as database records.
GridView control supersedes the
DataGrid control included in the ASP.NET 1.x Framework. The
DataGrid control is still included in ASP.NET 4 for backward compatibility, but you should use the
GridView instead because it is a more powerful control.
In this chapter, you learn ...