Looping through rows in a DataGrid

  • Thread starter Thread starter Diva
  • Start date Start date
D

Diva

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
 
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
 
Back
Top