Click here to Skip to main content
15,913,944 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a grid view in my project. Each record has a command event EDIT that allows the user to update the records.My professor would like me to have ONLY ONE edit button that will allow all the records in the grid view will be inside a text box to be edited. And if any of the records inside the grid view edited, the edit button will become an UPDATE button and will save the changes inside the grid view. Any help?
Posted
Updated 3-Aug-14 16:57pm
v4
Comments
[no name] 3-Aug-14 21:04pm    
What is it that you need help with? What have you tried? What was the problem with what you have tried? Why don't you ask your boss/lead for guidance? That is their job after all.
DarkDreamer08 3-Aug-14 21:49pm    
what I mean about calling her my boss is that she is my Professor. haha XD Sorry about that. I know on how to put command event in the grid view of the edit by editing the columns of the grid view. what my professor would like to my project is that there should be only one edit button that will allow all the records in grid view editable. i am trying some of the examples that I have searched in the net such this one: http://www.codeproject.com/Questions/631162/edit-all-rows-of-gridview-on-button-click-which-is

1 solution

What you really want is to show all rows in Edit Mode. Then when the button is clicked you loop through and process each row.

An example:
http://aspadvice.com/blogs/azamsharp/archive/2006/11/08/Show-all-GridView-Rows-in-EditMode.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900