Dynamic EditItemTemplate

Discussion in 'ASP .Net Datagrid Control' started by sysdesigner, Jun 24, 2005.

  1. sysdesigner

    sysdesigner Guest

    I am dynamically building EditItemTemplate columns for a datagrid. Whenever
    the "edit" or "update" commands are issued the event code fires but there
    isn't any controls in the Item collection. The following code yields a
    "null" reference on postback, when there should be a textbox called txtOne in
    the collection.

    textBoxOne = (TextBox)e.Item.FindControl("txtOne");

    Any ideas?

    TIA ,
    Shawn

    PS. The following article shows the method that I am using to create the
    template columns.

    http://www.dotnetbips.com/displayarticle.aspx?id=84
     
    sysdesigner, Jun 24, 2005
    #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. Trevor Hartman

    datagrid edititemtemplate for dates

    Trevor Hartman, Jul 16, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    374
    Trevor Hartman
    Jul 16, 2003
  2. SStory

    Datalist EditItemTemplate

    SStory, Aug 19, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    510
    SStory
    Aug 19, 2003
  3. Dave
    Replies:
    1
    Views:
    543
  4. Kevin Quigley

    asp:hyperlink in EditItemTemplate

    Kevin Quigley, Dec 2, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    383
    Kevin Quigley
    Dec 2, 2003
  5. Replies:
    0
    Views:
    965
Loading...

Share This Page