string[] sortByVal = sortValue.Split('_'); dsProductsForSearch = HttpContext.Current.Session["dsProductsForSearch"] as DataSet; DataTable dt0 = dsProductsForSearch.Tables[0]; if (dt0.Columns.Contains(sortByVal[1])) { DataTable dt1 = dsProductsForSearch.Tables[1]; DataTable dt2 = dsProductsForSearch.Tables[2]; dsProductsForSearch.Tables.RemoveAt(0); dsProductsForSearch.Tables.RemoveAt(0); dsProductsForSearch.Tables.RemoveAt(0); DataView dv = new DataView(dt0); dv.Sort = sortByVal[1] + " ASC"; dsProductsForSearch.Tables.Add(dv.ToTable()); dsProductsForSearch.Tables.Add(dt1); dsProductsForSearch.Tables.Add(dt2); } CreateHTMLforPDF (dsProductsForSearch);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)