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. Advertisements

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. rajan

    Insertion delay

    rajan, Sep 17, 2004, in forum: VHDL
    Replies:
    1
    Views:
    3,846
    Mike Treseler
    Sep 18, 2004
  2. Boban Dragojlovic

    automatic insertion of controls on codebehind

    Boban Dragojlovic, Jul 23, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    568
    Boban Dragojlovic
    Jul 24, 2003
  3. YuliaG
    Replies:
    2
    Views:
    638
    Arnaud Berger
    Apr 4, 2005
  4. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,296
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  5. Replies:
    1
    Views:
    914
    Harold Aptroot
    Jul 16, 2008
  6. NoviceASPNET
    Replies:
    0
    Views:
    896
    NoviceASPNET
    Nov 4, 2009
  7. libsfan01
    Replies:
    1
    Views:
    219
  8. Serious_Practitioner

    For VK - Revisiting Insertion of HTML into JavaScript

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