467,921 Members | 1,287 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,921 developers. It's quick & easy.

Looping through rows in a DataGrid

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
  • viewed: 5145
Share:
1 Reply
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.

Similar topics

2 posts views Thread by CanoeGuy | last post: by
6 posts views Thread by Dan | last post: by
5 posts views Thread by Brian Conway | last post: by
2 posts views Thread by Jim Heavey | last post: by
2 posts views Thread by Jim Bancroft | last post: by
5 posts views Thread by Stimp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.