I need to build a custom sort method for a GridView control, but I'm having trouble properly accessing the grid ID and the sort expression. Can some one give me an example of a custom sort method or links to one? I have to add many grids to my page and they all need to be sortable through one method.
private void SortAllGrids(object sender, GridViewSortEventArgs e)
GridView gridView = (GridView)sender;
string test = gridView.ID;