i want to update and delete row in gridview so i can do it with the following 2 ways :
[1] using rowcommand event of gridview [in which i will have merged code for both edit as well as delete]
[2] using rowdeleting and rowupdating events of gridview [in which i will have separate code for each action]
so what i want to know is that which is better when the performance is mostly concerned . i meant which 1 is having advantages.
Plz reply and thnx in advance .
Regards,
Satish Hirpara
Jignesh TrivediPosted Jun 10, 2013, 12:20 AM
hi,
Rowcommand Event is raised when a button is clicked in the gridview.Row command event is very generalize event is is also raised for any control with in Gridview like dropdown. this event work base on command name and command argument property.
where as rowdeleting and rowupdating both are independent event.
If your grid view is only containing update and delete event than is batter to separate these two.
hope this will help you.