public void fillGrid() { DataTable AlertsTable = new DataTable(); AlertsTable = VSWebBL.ConfiguratorBL.DELSBL.Ins.GetDELSNames(); try { Session["DELSNameTable"] = AlertsTable; DELSDefGridView.DataSource = AlertsTable; DELSDefGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw; } }
public void fillGridfromSession() { DataTable EventsTable = new DataTable(); if (Session["DELSNameTable"] != "" && Session["DELSNameTable"] != null) { EventsTable = (DataTable)Session["DELSNameTable"]; } try { DELSDefGridView.DataSource = EventsTable; DELSDefGridView.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw; } }