Hi,
I have a panel in the gridview. After clicking on a button(on the first record) i am getting the popup panel displayed but if i click the button (which is in the second record), I am getting the pannel displayed in the same record area and not as a popup!
Can someone help with this?
protected void showit_Click(object sender, EventArgs e)
{
//Find the button controls from sender
Button btn = (Button)sender;
//Get the row that contains this button
GridViewRow row = (GridViewRow)btn.NamingContainer;
//Find the panel control
Panel panel1 = row.FindControl("Panel1") as Panel;
panel1.Visible = true;
}it is really getting out of hand! i still don't know why and how the following is happening!
first record will show the panel in the popup but the second record will show the pannel in the same area of the gridview!!!!!!