Question Delete from GridView

mansi sharma

Member
Joined
Mar 8, 2009
Messages
16
Programming Experience
Beginner
I want to ask that is there any to set tag in Gridview,As In listview we have tag & for each row it is different, I want to delete the row from the gridview, on what basis can i do dat..Just give me hint..Not the entire code..I will be very thankfull to U..
 
Reg. Deleting rows from Grid View Control

Hi,

Alternative to tag, you can define primary key of the records as "DataKeyNames" in GridView control, and catch the Primary Key in a rowcommand event.

All you need to do is to get the value from the CommandArgument property which you have already set to the particular ID
 
Last edited by a moderator:
Nice Disc

Hi,

your solution is very clear, thanks.

It would be great if u can post some articles on this "Gridview" to clarify general FAQs which arises while working on this "Gridview"
 
Back
Top