/ Published in: C#
When I first used this code, it was in the GridView_OnSorting event. This will sort the Sort Expression and Sort Direction in the ViewState. In the fill_grid() function I will pull these values from the ViewState to construct the sort.