ASP.NET 2.0 Free Tutorials : Using a Grid to Display Detail Information

In this tutorial you will learn how to use a GridView Control to display the details of the item selected in the DropDown list and test the page.

We shall now use a GridView to display the details of the item selected in the DropDown list.

1. Switch to or open the Default.aspx page (or the page you have been working with), and switch to Design view.

2. From the Data group of the Toolbox, drag a GridView control onto the page.

3. In the smart tag panel, from the Connect to Data Source list, select < New Data Source >.

4. In the smart tag panel, select Choose Data Source.

5. The Choose Data Source wizard starts.

6. From the Select a data source list, select < New Data Source >.

7. You will create a second data source that will get different data than the first data source control does.

8. The Data Source Configuration dialog box is displayed:

9. Select Database.

10. In the Specify an ID for the data source box, a default data source control name is displayed (SqlDataSource2). You can leave this name.

Read More...

http://www.exforsys.com/content/view/1655/354/