Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear

How I have a gridview there is a linkbutton if i click that
Then
Open a Popup panel within in the page

please if you know the code

Please help me

I am confused with this

Thank you
Posted
Comments
devbtl 6-Jan-12 3:55am    
simply set panel visibility to true on linkbtn click but the question is where are u showing that panel?

Try this ,

C#
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0 && e.RowIndex >= 0)
     {
         panel1.Top = dataGridView1.Top + 50;
         panel1.Left = dataGridView1.Left + 50;
         panel1.Visible = true;

     }
     else
         panel1.Visible = false;
 }
 
Share this answer
 
Use Modapopup extender to pop up

on linkbutton click

C#
protected void LinkButton1_Click(object sender, EventArgs e)
{
    GridViewRow clickedRow = ((LinkButton) sender).NamingContainer as GridViewRow;
    .
    .
    .
   this.modalpopup.Show();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900