public void FillALLGridfromSession() { DataTable dt = new DataTable(); if (Session["Dailytab"] != "" && Session["Dailytab"] != null) { dt = Session["Dailytab"] as DataTable; } if (dt.Rows.Count > 0) { AllDBGridView.DataSource = dt; AllDBGridView.DataBind(); } }
//protected void AllDBGridView_SelectionChanged(object sender, EventArgs e) //{ // if (AllDBGridView.Selection.Count > 0) // { // System.Collections.Generic.List<object> Type = AllDBGridView.GetSelectedFieldValues("Server"); // if (Type.Count > 0) // { // string Name = Type[0].ToString(); // Session["Type"] = Type[0]; // DevExpress.Web.ASPxWebControl.RedirectOnCallback("Performance.aspx?Name=" + Server + ""); // //Response.Redirect("DeviceChart.aspx"); // } // } //} public void FillALLGrid() { DataTable Dailytab = new DataTable(); try { Dailytab = VSWebBL.DashboardBL.DatabaseHealthBL.Ins.GetAllData(""); if (Dailytab.Rows.Count > 0) { } Session["Dailytab"] = Dailytab; AllDBGridView.DataSource = Dailytab; AllDBGridView.DataBind(); AllDBGridView.FocusedRowIndex = -1; } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } }