When I try to sort a GridView, the system returns this error-message:
gridview sort An unhandled exception of type
‘System.StackOverflowException’ occurred in System.Web.dll
This is the code and “Melder” is the name of the column to sort.
gvOutlookMeldingen.Sort("Melder", SortDirection.Ascending);
Put your Datatable in Viewstate when you bind first time
and then do like…
Take a look here also on MSDN article http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.sorting.aspx