System.Web.UI.WebControls.GridView.Sorted Event

Occurs when the hyperlink to sort a column is clicked, but after the System.Web.UI.WebControls.GridView control handles the sort operation.

Syntax

public event EventHandler Sorted

Remarks

The GridView.Sorted event is raised when the hyperlink to sort a column is clicked, but after the System.Web.UI.WebControls.GridView control handles the sort operation. This enables you to provide an event-handling method that performs a custom routine, such as custom sorting, whenever this event occurs.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0