hi, this is Ranga.
please help me to solve the following
"how to add gridview at runtime in the child pages"
I write the following code, but its not working
GridView gv = new GridView();
gv.ID = "gridview1";
gv.Visible = true;
gv.Style.Add("z-index: 100; left: 276px; position: absolute; top: 284px", "css");
//form1.Controls.Add(gv);
cmd = new SqlCommand("select * from functionhalls", cn);
da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds, "f");
gv.DataSource = ds.Tables["f"];
gv.DataBind();
// this.Page.Controls.Add(gv);
ContentPlaceHolder ContentPlaceHolder1 = new ContentPlaceHolder();
ContentPlaceHolder1.Controls.Add(gv);