Create a web user control as shown below.
Step 2:
Add a function to set values to the elements of user control.
Step 3:
Insert a GridView from the toolbox and place controls as shown below.
Step 4:
Implement the methods as shown below.