System.Web.UI.WebControls Namespace GridView Class
.NET Framework version 2.0
Occurs when the linkbutton to sort a column is clicked, but before the GridView control handles the sort operation.
[ VB ] Public Event Sorting As GridViewSortEventHandler [ C# ] public event GridViewSortEventHandler Sorting; [ C++ ] public: __event GridViewSortEventHandler* Sorting;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The Sorting event is raised whenever any of the LinkButton controls used for sorting a GridView is clicked, but before the GridView control handles the sort operation.
This allows you to provide an event-handling method that performs a custom routine, such as canceling the sort operation, whenever this event occurs.
The method assigned to handle the event is passed an argument of type GridViewSortEventArgs object containing data related to this event. The following GridViewSortEventArgs properties provide information specific to this event.
GridView Members AllowSorting GridViewSortEventArgs GridViewSortEventHandler
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph