Delete records from Gridview

Posted by Jayashree under C# on 5/11/2011 | Points: 10 | Views : 5417 | Status : [Member] | Replies : 4
Hi
I am working project i am fresher, i am getting problem while deleting records from Gridview when i select fields from 2 different tables its not working.
If i use 1 table fields then delete is working fine in gridview. I dont no other way how to delete records in gridview using 2 different tables ,i am using asp.net with c# .
Can any one help me pls.

jaya


Responses

Posted by: Lalji_mer on: 5/12/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

Here code sample will help you please try below url

http://stackoverflow.com/questions/5126123/delete-current-row-data-from-grid

using check box read below link

http://csharpdotnetfreak.blogspot.com/2009/05/edit-multiple-records-gridview-checkbox.html

LP MER

Jayashree, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 5/12/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Jayashree

if u want to delete two tables record with grdivew . . so chek this link it's help full for u . .

http://www.codeproject.com/KB/aspnet/InsertingWithGridView.aspx

Best Regard's
Prabhakar

Jayashree, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 5/19/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Refer link,

http://www.aspsnippets.com/Articles/Select-and-delete-multiple-rows-in-ASP.Net-Gridview-control.aspx

Regards,
Susan

Jayashree, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 5/19/2011 [Member] Starter | Points: 25

Up
0
Down
use output clause to delete ,update or insert in two different tables. search in google for output clause

Thanks&Regards
LakshmiNarayana Nalluri.

Jayashree, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response