By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,078 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,078 IT Pros & Developers. It's quick & easy.

Looping through rows in a DataGrid

P: n/a
Hi,

I have a data grid in my application. It has 20 rows and I
have set the page size as 5. I have a Submit button on my
form and when I click on Submit, I need to loop through
the rows in the datagrid. Using the items collection just
gives me the 5 rows that are displayed on the screen.
Is there any way of looping through all the rows in the
grid?

Thanks,
Diva
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Diva,

Instead of looping through the rows of the grid (which only contains five)
try looping through the dataset or datatable that's bound to it instead.

--
S. Justin Gengo, MCP
Web Developer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche
"Diva" <mo*****************@yahoo.com> wrote in message
news:00****************************@phx.gbl...
Hi,

I have a data grid in my application. It has 20 rows and I
have set the page size as 5. I have a Submit button on my
form and when I click on Submit, I need to loop through
the rows in the datagrid. Using the items collection just
gives me the 5 rows that are displayed on the screen.
Is there any way of looping through all the rows in the
grid?

Thanks,
Diva

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.