4
Answers

RowDeleted and Rowdeleting difference

Ask a question
Hello ,

        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


Answers (4)