System.Web.UI.WebControls.GridView.OnRowDeleting C# (CSharp) Method

OnRowDeleting() protected method

protected OnRowDeleting ( GridViewDeleteEventArgs e ) : void
e GridViewDeleteEventArgs
return void
		protected virtual void OnRowDeleting (GridViewDeleteEventArgs e)
		{
			if (Events != null) {
				GridViewDeleteEventHandler eh = (GridViewDeleteEventHandler) Events [RowDeletingEvent];
				if (eh != null) {
					eh (this, e);
					return;
				}
			}
			if (!IsBoundUsingDataSourceID)
				throw new HttpException (String.Format ("The GridView '{0}' fired event RowDeleting which wasn't handled.", ID));
		}