1) Open Visual studio
2)  Create New Website  (Shift+Alt+N)
3) Right click on Solution Explorer select Add new item (Ctrl+Shift+A)
4) Choose New Webform
5) Select Toolbox from view Tab (Ctrl+Alt+X)
6) Select Data Tab From Toolbox
7) Drag And Drop Gridview control to Webform

 Create demo table in Microsoft SQL Server
Demo.sql

 
Default.aspx

Default.aspx.cs

Web.config
Out put