Click here to Skip to main content
15,905,877 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
How To ADD Delete Update records in gridview using button click event not using gridview events in asp.net
Posted
Comments
_Amy 3-Apr-13 1:33am    
What kind of question it is? If GridView is having a better option then why you making it complex?

Hi,

For Adding, Deleting and updating, on the button click event just Add, Delete and Update the rows of the DataTable (data source of the gridview, i assumed its datatable), and bind the grid view again with that datatable.

here i have assumed you are using datatable for binding the gridview, in case its some other source, do the same operations on that and bind the grid view again.

hope it helps.
 
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