Murach's ASP.NET 2.0 Upgrader's Guide: C# Edition
How to use the GridView control

This chapter shows you how to use the new ASP.NET 2.0 GridView control. This control lets you display the data from a data source in the rows and columns of a table and makes it easy to manipulate and maintain that data.

Chapter 5 How to use the GridView control
An introduction to the GridView control 148
How the GridView control works 148
How the GridView and DataGrid controls compare 150
How to customize the GridView control 152
How to define the fields in a GridView control 152
Elements used to create and format fields 154
How to enable sorting 156
How to enable paging 158
How to customize paging 160
A list application that uses a GridView control 162
The Product List application 162
The aspx file 164
How to update GridView data 166
How to work with command fields 166
How to use events raised by the GridView control 168
How to insert a row in a GridView control 170
A maintenance application that uses a GridView control 172
The Category Maintenance application 172
The aspx file 174
The code-behind file 178
How to work with template fields 180
How to create template fields 180
The template version of the Category Maintenance application 182
The aspx code for the template version 182




Murach's ASP.NET 2.0 Upgrader's Guide: C# Edition

Learn more about this book

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.