i want to know what is the main difference between RowDeleted and Rowdeleting event of gridview . i meant if rowdeleted is used after one perticular row is deleted then we can do that with the rowdeleting event too.
For example :
protected void gvList_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
Delete row();
-------- Here we can write the same code which we suppose to write under Rowdeleted
event of gridview then why we are using gridview RowDeleted() event. -----
}
i have same question for other events like Rowupdating/rowupdated,
PageindexChanging/PageindexChanged etc ..
Plz plz reply and thnx in advance
Jignesh TrivediPosted Jun 9, 2013, 11:23 PM
hi,
The RowDeleting event is raised when a row's Delete button is clicked, but before the GridView control deletes the row.
The RowDeleted event is raised when a row's Delete button is clicked, but after the GridView control deletes the row.
Please refer
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdeleted.aspx
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowdeleting.aspx
hope this will help you.
Pankaj PandeyPosted Jun 8, 2013, 6:28 AM
Sunny SharmaPosted Jun 8, 2013, 3:07 PM
The basic difference between RowDeleting and RowDeleted is a bit self explanatory.
RowDeleting event fires just before the Row is deleted. It gives you the lag to do some wrap up kind of things of your choice with the row data before the it is no more, whereas you cannot access the Row Data in RowDeleted event.
Hope it helps :)
Thanks.
Satish HirparaPosted Jun 8, 2013, 6:35 AM