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

OnSorting() protected method

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