Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Getting Values from Dynamically Created Template Columns in Gridview

Reply
Thread Tools

Getting Values from Dynamically Created Template Columns in Gridview

 
 
springtraining
Guest
Posts: n/a
 
      11-12-2007
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Affecting a dynamically created drop down from another dynamically created drop down. msimmons ASP .Net 0 07-16-2009 03:17 PM
template columns and bound columns in gridview Vinki ASP .Net Web Controls 2 04-25-2007 04:22 PM
Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created) dickster ASP .Net Building Controls 0 12-08-2005 09:32 AM
Problem with dynamically created template columns and updatecomman =?Utf-8?B?U3VtYQ==?= ASP .Net 2 12-23-2004 10:29 AM
Getting values from dynamically created controls in a DataGrid Colin McGuigan ASP .Net 2 02-06-2004 12:03 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57