HardingR2000
Programmer
I have a Gridview with a data source containing 100 rows. I use page control to display 40 rows at a time. On each row is a check box that flags the row for processing later should the user click on another button on the screen. Additionally, I have a check box (call it ALL) outside the grid which, when checked, programmatically checks the check box on all 100 rows in the data source when it is checked. If ALL is unchecked then the process will programmatically uncheck the check box on all 100 rows.
What I want to do is have the ALL check box only check and uncheck those 40 rows that are being displayed on the page currently being displayed on the screen. There is a column (called Account) which is unique for each row that is used to perform the update.
My problem is that I don't know how to programmatically capture/identify the 40 rows being displayed so that I can perform the update on only those 40 accounts. Can someone tell me how to process only the 40 rows being displayed on the screen out of the 100 rows in the data source?
What I want to do is have the ALL check box only check and uncheck those 40 rows that are being displayed on the page currently being displayed on the screen. There is a column (called Account) which is unique for each row that is used to perform the update.
My problem is that I don't know how to programmatically capture/identify the 40 rows being displayed so that I can perform the update on only those 40 accounts. Can someone tell me how to process only the 40 rows being displayed on the screen out of the 100 rows in the data source?