Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
anyone pls help how to insert,update and delete data in sql server using gridview. in multiple ways

pls help me

Thx in advance
Posted
Comments
joshrduncan2012 1-Jul-13 16:07pm    
Is google down?
Nirav Prabtani 2-Jul-13 8:51am    
Try to search on google you will get lots of result according that and you will get your exact need. :)

You could use below mentioned links for your task.

Insert Update and Delete rows in ASP.NET GridView Control :
http://code.msdn.microsoft.com/Insert-Update-Delete-rows-b0a2d4e2[^]

Insert,Update and Delete Using Grid View and ObjectDataSource :
http://weblogs.asp.net/manojkdotnet/archive/2009/10/11/insert-update-and-delete-using-grid-view-and-objectdatasource.aspx[^]

I hope this will help to you.
 
Share this answer
 
v3
Hi,

You can perform those task in different way by gridview

1 using
onrowupdating,onrowdeleting and any predefined events. 

2 using
RowCommand
but in this event you have to pass commandname for more details you can refer

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx[^]

Thanks,
 
Share this answer
 
Hi..
see this link for total gridview events.
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html[^]
thank u.
 
Share this answer
 
hello please see

Grid view insert, update and delete[^]
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html[^]
 
Share this answer
 
v2
Here its explain and you can also download demo project here:
http://csaspnetgridview.codeplex.com/[^]
 
Share this answer
 
Comments
jaideepsinh 3-Jul-13 3:48am    
Accept as answer if this one help to you.
You can access the events of Gridview for Edit, Insert, Update and write code in those events.

or Write seperate SPs for Insert, Update and call it from page.
 
Share this answer
 
Check this out..
Insert Update and Delete[^]
 
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