I am using the following code to try and sort a gridview. I have a column that has a sort expression of name (the field Name) and the grid is enabled for paging and sorting. When I run the following code it ends up in a loop and I cant figure out why. It then crashes. Where have I missed the boat.
Protected Sub SelectionGrid_Sorting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewSortEventArgs)
If e.SortDirection = SortDirection.Ascending Then