public void SetExchangeGridFromQString(string serverName)
 {
     try
     {
         DataTable dt = VSWebBL.DashboardBL.DiskHealthBLL.Ins.SetExchangeGridFromQString(serverName);
         DiskHealthGrid.DataSource = dt;
         DiskHealthGrid.DataBind();
         ((GridViewDataColumn)DiskHealthGrid.Columns["DeviceName"]).GroupBy();
     }
     catch (Exception ex)
     {
         Response.Write("Error : " + ex);
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
 }
 public void SetGrid()
 {
     try
     {
         DataTable dt = VSWebBL.DashboardBL.DiskHealthBLL.Ins.SetGridforExchange(servernamelbl.Text);
         Session["GridData"]       = dt;
         DiskHealthGrid.DataSource = dt;
         DiskHealthGrid.DataBind();
         //((GridViewDataColumn)DiskHealthGrid.Columns["DeviceName"]).GroupBy();
         int rowIndex = DiskHealthGrid.FindVisibleIndexByKeyValue("ProbeID");
         //Session["rowIndex"] = rowIndex;
     }
     catch (Exception ex)
     {
         Response.Write("Error : " + ex);
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
 }
 public void SetGridFromSession()
 {
     try
     {
         if (Session["GridData"] != null)
         {
             DataTable dt = Session["GridData"] as DataTable;
             DiskHealthGrid.DataSource = dt;
             DiskHealthGrid.DataBind();
             int rowIndex = DiskHealthGrid.FindVisibleIndexByKeyValue("ProbeID");
             Session["rowIndex"] = rowIndex;
         }
     }
     catch (Exception ex)
     {
         Response.Write("Error : " + ex);
         Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
         throw ex;
     }
 }