private void FillDominoCustomStatGrid() { try { DataTable DCustomStatDataTable = new DataTable(); DCustomStatDataTable = VSWebBL.ConfiguratorBL.DominoCustomStatBL.Ins.GetAllData(); if (DCustomStatDataTable.Rows.Count >= 0) { Session["DominoCustom"] = DCustomStatDataTable; DominoCustomGridView.DataSource = DCustomStatDataTable; DominoCustomGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
private void FillDominoCustomGridfromSession() { try { DataTable DCustomStatDataTable = new DataTable(); if (Session["DominoCustom"] != "" && Session["DominoCustom"] != null) { DCustomStatDataTable = (DataTable)Session["DominoCustom"]; } if (DCustomStatDataTable.Rows.Count > 0) { DominoCustomGridView.DataSource = DCustomStatDataTable; DominoCustomGridView.DataBind(); } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }