i have a gridview,two buttons(edit,save) ,what i wanna to do is :
when click edit open the gridview in edit mode for all the textboxes.
when click save takes the changes and update
(rather than edit and update row by row)
i use object data source.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A
GridViewis not really ment to edit all rows at once. To do so it’s actually not that straight forward. If you want to do it though, check out the following article:Real World GridView: Bulk Editing
I would recommend not using a
GridViewand using aRepeaterto show your data. Then when you want to edit, use a different page (or a panel with a differentRepeater) to display your edit controls. Your code will be a lot more maintainable with this solution.You didn’t explain why you need to edit all rows at once so either way one of the above solutions should work.