What event fires after using the Cancel command in the DetailsView?

I need to do a few checks (enable or disable a shortcut elsewhere on the page) after the user inserts or cancels the DetailsView. I have to do this because DropDownList.SelectedIndexChanged does not fire during this event (which is dumb in my opinion since the DOES index changes).

0


a source to share


1 answer


ModeChanging should work, so what can you do?



protected void DetailsView1_ModeChanging(object sender, DetailsViewModeEventArgs e)
{
    if (e.CancelingEdit)
    {
        //Checks
    }
}

      

+4


a source







All Articles