public void FillGrid() { DataTable RPRAccessTable = new DataTable(); try { RPRAccessTable = VSWebBL.SecurityBL.AdminTabBL.Ins.GetRPRAccessData(); Session["RPRAccessTable"] = RPRAccessTable; RPRAccessGridView.DataSource = RPRAccessTable; RPRAccessGridView.DataBind(); ((GridViewDataColumn)RPRAccessGridView.Columns["Category"]).GroupBy(); // ReportsDataView.DataSource = RPRAccessTable; // ReportsDataView.DataBind(); } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
public void FillGridfromSession() { try { DataTable RPRAccessTable = new DataTable(); RPRAccessTable = Session["RPRAccessTable"] as DataTable; RPRAccessGridView.DataSource = RPRAccessTable; RPRAccessGridView.DataBind(); ((GridViewDataColumn)RPRAccessGridView.Columns["Category"]).GroupBy(); // ReportsDataView.DataSource = RPRAccessTable; // ReportsDataView.DataBind(); } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } }