GridView sorting: SortDirection always Ascending
The problem with Session and Viewstate is that you also have to keep track of the gridview control for which SortColumn and Direction is stored if there is more than one gridview on the page. An alternative to Session and Viewstate is to add 2 attributes to the Gridview and keep track of Column and … Read more