Tutorials
ASP.NET 2.0In this tutorial you will learn about GridView Control, features of the GridView control, GridView supported field types and Creating a GridView control on a Page.
The GridView control is the official successor to the DataGrid control of yesteryears. It is no longer listed in the toolbox, even though it is supported by ASP.NET 2.0. All new projects would automatically use the GridView control. Though both these controls have a similar look and feel they are implemented differently as already explained in the earlier section of this tutorial. However, to reiterate some of the features of the GridView control let us list them:
1. BoundField,
2. CheckBoxField,
3. ButtonField,
4. CommandField,
5. HyperlinkField,
6. ImageField and
7. TemplateField
1. Create a Web site
2. Open the Default.aspx page in design view and drag a GridView control onto it.

3. Switch over to the Source view and examine the code. The following code will be displayed.
Click here to view sample code
4. For fetching records from a data source we need to add a SqlDataSource Control to the website. Click on the arrow and select
5. Click Ok. The Configuration Data Source wizard appears.

6. Click on New connection or select the connection for the application from the drop down list.
7. Next specify the columns that are to be bound to the GridView from the table.
Next Page: ASP.NET GridView Control - Page 2
| how to retrive a particular grid field value into a variable in asp.net 2.0? |