GridView





5.00/5 (2 votes)
The GridView control was introduced with ASP.NET 2.0 and Visual Studio 2005 as a replacement for the DataGrid control. While it has many
The GridView control was introduced with ASP.NET 2.0 and Visual Studio 2005 as a replacement for the DataGrid control. While it has many similarities to the original DataGrid control the GridView is a more feature rich control.
A variety of resources are linked below to help you get started with using the GridView control. If you don't find them here you might find them in the data access tutorials.
Videos/Webcasts
- Working with the GridView and FormView - In this lesson, you will learn about the GridView and FormView controls and how you can use some of the features of these controls to make editing and displaying of database content easier.
- Working With the GridView and DetailsView Controls in ASP.NET 2.0 - In this session, learn how you can display and edit data using the GridView control, work with the GridView and DetailsView together, and take advantage of several GridView controls events to get the exact behavior you need.
- Extending the GridView to Include Sort Arrows: Scott Mitchell has a nice article that describes how to add a visual indicator to the GridView control to indicate the current sort order on columns.
- GridViewControlExtender - Row MouseOver and Click Styles, Header Cell MouseOver Styles, and 5 Themes Based on Google's Personalized HomePage: Matt Berseth has three cool posts that show off techniques you can use to customize the look and feel of the ASP.NET GridView control.
Master/Detail
- Master/Detail Filtering With a DropDownList
- Master/Detail Filtering With Two DropDownLists
- Master/Detail Filtering Across Two Pages
- Master/Detail Using a Selectable Master GridView with a Details DetailView
Enhancing the GridView
- Adding a GridView Column of Radio Buttons
- Adding a GridView Column of Checkboxes
- Inserting a New Record
GridView FAQs
Enjoy!