Click here to Skip to main content
15,300,338 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my Asp.net C# web form, I have many controls and Gridview to get input from user.

I have only one save button, it is used for Insert or Update(Sql Stored Procedure used for Insert/update).

I had add new row button for gridview to get 'n' number of rows as input.

I want Gridview in edit mode if it has rows, User can Update details, Add new row, delete row using delete button and it should be updated in table only if user click save button which is outside of Gridview.

What I have tried:

Now I can Insert or Update with gridview onRowCommand and Inbuild edit option, and user click save button it saves text box and other control values.

At present User Can Insert or Update or Delete in Gridview using Gridview in-build Edit/Delete option. In this case it reflects immediately in Table without using Save button, but I don't want this method.

How can I do gridview modification should reflect in table only after user click Save Button.
Posted

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