GridView control is providing an easy approach for displaying all data from your database into tabular format. GridView works fine with SqlDataSource data control for making connection and executing SQL query into server. Visit below link to read the whole code with explanation:
http://www.synapseindia.careers/syn/working-with-asp-net-gridview-control/
http://www.synapseindia.careers/syn/working-with-asp-net-gridview-control/