Insertion into GridView

Discussion in 'ASP .Net Datagrid Control' started by anil, Feb 20, 2007.

  1. anil

    anil Guest

    i have added a footer row in the gridview and a link button in the footer row for insertion of new row into the database. when i press new button, appropriate textboxes are appearing in the footer row. i had written the code in Page_Load() as follows
    protected void Page_Load(object sender, EventArgs e)
    {

    lbNew = new LinkButton();
    lbNew.Text = "New";
    GridView2.FooterRow.Cells[4].Controls.Add(lbNew);
    New_Button_On_Click += new dlgNew(GridViewInsert);
    lbNew.Click += new EventHandler(New_Button_On_Click);


    }

    but when i go to the second page, i cannot see the linkbutton in the footer row in the second page. Also when i come back to the first page, i cannot see the linkbutton in the footer row of template column. the datagrid is created at design time and not at runtime. Please help me in this issue and mail me if anybody can provide solution
    ---
    Posted via DotNetSlackers.com
     
    anil, Feb 20, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. YuliaG
    Replies:
    2
    Views:
    476
    Arnaud Berger
    Apr 4, 2005
  2. Replies:
    1
    Views:
    729
    Harold Aptroot
    Jul 16, 2008
  3. NoviceASPNET
    Replies:
    0
    Views:
    820
    NoviceASPNET
    Nov 4, 2009
  4. libsfan01
    Replies:
    1
    Views:
    111
  5. Serious_Practitioner

    For VK - Revisiting Insertion of HTML into JavaScript

    Serious_Practitioner, Jan 28, 2007, in forum: Javascript
    Replies:
    1
    Views:
    128
Loading...

Share This Page