public static void SortGridView(GridView gridViewId, string pSortExp, DataTable dtTableToSort, string pSortDirection)
{
VS_CommonMethods.ReUsableTryCatch(() =>
{
HttpContext.Current.Session["sortDirection"] = (VS_Utils.ToString(HttpContext.Current.Session["sortDirection"]) == VS_Constants.ASC) ? VS_Constants.DESC : VS_Constants.ASC;
DataView dvSearch = new DataView(dtTableToSort);
dvSearch.Sort = pSortExp + " " + pSortDirection;
gridViewId.PageIndex = 0;
FillGridDatasource(gridViewId, dvSearch.ToTable());
});
}