update edit delete in templatecontrol of gridview [Resolved]

Posted by Bhabani.net under C# on 12/13/2011 | Points: 10 | Views : 1735 | Status : [Member] | Replies : 2
i want to edit update and delete row using template control in gridview and also give summary in that

dasda


Responses

Posted by: Nilschaudhari on: 12/13/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
hi,

you use the templete control for the edit,update or delete by using the link buttons. for each link button you assign the datakey and command name. and define the command event for the gridview for the action perform.
e.g

protectd void gridRow_Command(object sender, gridviewcommandeventarg e)
{

if(e.commandname=="edit")
{
//// code for editt
}
...


}

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

Posted by: Bhabani.net on: 12/13/2011 [Member] Starter | Points: 25

Up
0
Down
what this is not enough

dasda

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

Login to post response