protected virtual void OnModeChanging (FormViewModeEventArgs e)
{
if (Events != null) {
FormViewModeEventHandler eh = (FormViewModeEventHandler) Events [ModeChangingEvent];
if (eh != null) {
eh (this, e);
return;
}
}
if (!IsBoundUsingDataSourceID)
throw new HttpException (String.Format (unhandledEventExceptionMessage, ID, "ModeChanging"));
}