Getting Values from Dynamically Created Template Columns in Gridview

Discussion in 'ASP .Net Web Controls' started by springtraining, Nov 12, 2007.

  1. I have created a gridview in my application, based on results from a
    dropdownlist on the page. I am trying to allow all resulting
    textboxes to be edited at once (instead of having to click the edit
    button for each row and then clicking on the update button once
    edited). As a result, I am dynamically creating the gridview (and
    that part is working just fine).

    The problem I'm facing is when I try to update the database. I am not
    sure how to access the textboxes created in each column.

    The textboxes as they are being added are not given names, so I can't
    use "FindControl." While working in the immediate window, I am told
    that although there are textboxes in the cells, the cell doesn't have
    any controls.

    I'm just trying to find the value within one of these textboxes.

    Thank you all in advance.
     
    springtraining, Nov 12, 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. Colin McGuigan
    Replies:
    2
    Views:
    752
    Colin McGuigan
    Feb 6, 2004
  2. =?Utf-8?B?SmVu?=

    Getting values from dynamically created control.

    =?Utf-8?B?SmVu?=, Apr 22, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    517
    =?Utf-8?B?SmVu?=
    Apr 30, 2004
  3. =?Utf-8?B?U3VtYQ==?=
    Replies:
    2
    Views:
    516
    =?Utf-8?B?U3VtYQ==?=
    Dec 23, 2004
  4. msimmons
    Replies:
    0
    Views:
    487
    msimmons
    Jul 16, 2009
  5. Vinki

    template columns and bound columns in gridview

    Vinki, Apr 25, 2007, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    869
    Vinki
    Apr 25, 2007
Loading...

Share This Page