Your question is not clear.. hope the below one helps you.
If you wanted to create a gridview dynamically, u can have placeholder on your page. In your event you need to create a gridview like below.
Dim grdView as GridView
grdView.DataSource = loDT '(your datasource)
grdView.Databind()
plceHolder.Controls.Add(grdView).