In ASP.Net you can generate dynamic GridView control using C# code even after the execution of page load event. Click event of button control can be used to render and bind the data with Dynamic GridView control.
You can use the ASP.Net Panel control to render the GridView control as a child control after binding the data retrieved from the SQL Database.
C# Class Used
1. GridView (System.Web.UI.WebControls.GridView)