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; } }
protected void RPRAccessGridView_SelectionChanged(object sender, EventArgs e) { if (RPRAccessGridView.Selection.Count > 0) { System.Collections.Generic.List <object> Type = RPRAccessGridView.GetSelectedFieldValues("PageURL"); if (Type.Count > 0) { string URL = Type[0].ToString(); // Session["Type"] = Type[0]; //Mukund: VSPLUS-844, Page redirect on callback try { DevExpress.Web.ASPxWebControl.RedirectOnCallback(URL); Context.ApplicationInstance.CompleteRequest();//Mukund, 05Aug14, VSPLUS-844:Page redirect on callback } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); //throw ex; } } } }