I am trying to format the layout of my controls inside an Accoridon Pane, but I don't know how to put them in the correct position. Using absolute position I can put the control any where on the page but it is always visible and I want it to collapse with Accoridon. Also the Autosize of the pane no longer works because it is as if the control is not part of the Accordion pane. Does anyone know how to set the position of a control from the code behind, inside an Accordion Pane? Please help.
Here is my code where I am creating the controls and setting the position
GridView gvAdd = NewGridView(4);
gvAdd.ID = "gvAdd";
gvAdd.DataSource = data.Tables[3];
gvAdd.DataBind();
gvAdd.Style.Add("z-index", "1"); //Here is where I am trying to set the control position
gvAdd.Style.Add("left", "408px");
gvAdd.Style.Add("position", "absolute");
gvAdd.Style.Add("top", "200px");
gvAdd.SelectedIndexChanged += new EventHandler(gvAdd_SelectedIndexChanged);
gvAdd.Width = 350;
AccordionCampaign.ContentContainer.Controls.Add(gvAdd);