Click here to Skip to main content
15,561,685 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
delete a row in gridview using delete button....
Posted
Comments
DamithSL 3-Dec-14 5:05am    
if you google you can find many resources about deleting row in gridview.
update the question with your code. what have you tried so far? and where you stuck?

1 solution

Follow this

generate rowdeleting event of grid view
inside this event find row id of row which you want to delete using e.RowIndex.
now you have id of the row you just need to apply Remove method using query.
then make savechanges
then again bind your datasource to the grid.

thanks,
Mukesh
 
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