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));
}