Barry Sweezey
asked on
Looping through grid view and using an unbound check box.
I display a list in a gridview that has an "Approve" and "Deny" button on each row. When a button is clicked, the row disappears. The users don't like this method because they lose their place when the page is reloaded. They'd like a check box, indicating approval, on each row and a "Save" button that they'd click when they've finished the whole list. How do I add such an unbound check box and process each row when the save button is clicked?
ASKER
The data source for the grid view is all requests which have neither been approved or denied. I think this code would act like the process I already have. The user checks a row. The page posts back, the approve field gets updated, the page is reposted with that row missing. Right?
The users can have a long list, and they want to be able to go down the list and select maybe only a few records. If the page reposts after every change, they lose their place and have to start at the top of the list again. That's what they want to avoid.
I need users to be able to check the boxes they want, without the page going back to the server, and when they're done, click a "Save" button. The click event on that button would go through the list and update all the selected records.
The users can have a long list, and they want to be able to go down the list and select maybe only a few records. If the page reposts after every change, they lose their place and have to start at the top of the list again. That's what they want to avoid.
I need users to be able to check the boxes they want, without the page going back to the server, and when they're done, click a "Save" button. The click event on that button would go through the list and update all the selected records.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Example in C# similar to your issue
http://www.ezzylearning.com/tutorial.aspx?tid=5187857
Example in vb, but clear enough
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-checkboxes-vb