Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Loop through textboxes in a gridview

0 views
Skip to first unread message

Steve

unread,
Jul 26, 2006, 9:35:43 AM7/26/06
to
One of the columns in my gridview is a blank textbox (I have added it
as a template field). Users can enter a number in the textbox for a
multiple of the gridview records.

I have a submit button which is intended to use code behind to access
these textbox values and eventually add them to a database.

However, I can't seem to loop through the textboxes in the gridview
successfully and store their values. Does anyone know the right syntax
for accessing these textbox values using a For and Next statement?

Thank you.

Eliyahu Goldin

unread,
Jul 26, 2006, 11:19:01 AM7/26/06
to
Loop through the gridview Rows collection. For every row find the textbox
with FindConrol method.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Steve" <bah...@iranmania.com> wrote in message
news:1153920943.0...@i42g2000cwa.googlegroups.com...

Steve

unread,
Jul 29, 2006, 4:34:26 AM7/29/06
to
Could you please give me an example of the syntax to be used?
0 new messages