GridView is one of the most usable data control for binding your whole table available into SQL Server. You can also format GridView into various built-in formats with unique styles. GridView is used in combination with SqlDataSource control for making the operation more simpler. In this article, we will display all data from primary table in first GridView and on the basis of it's data selection the data from foreign table is displayed into second GridView. Read the whole code by visiting below link:
http://www.synapseindia.careers/syn/easy-steps-to-learn-gridview-in-asp-net-webforms/
http://www.synapseindia.careers/syn/easy-steps-to-learn-gridview-in-asp-net-webforms/