System.Web.UI.WebControls Namespace GridView Class
.NET Framework version 2.0
Occurs when the linkbutton to sort a column is clicked, but after the GridView control handles the sort operation.
[ VB ]
Public Event Sorted As EventHandler
[ C# ]
public event EventHandler Sorted;
[ C++ ]
public: __event EventHandler* Sorted;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The Sorted event is raised whenever any of the LinkButton controls used for sorting a GridView is clicked, but after the GridView control handles the sort operation.
This allows you to provide an event-handling method that performs a custom routine, such as custom sorting, whenever this event occurs.
GridView AllowSorting