示例#1
0
 public void Fillgridfromsession()
 {
     if (Session["ClusterHealth"] != "" && Session["ClusterHealth"] != null)
     {
         ClusterHealthGrid.DataSource = (DataTable)Session["ClusterHealth"];
         ClusterHealthGrid.DataBind();
     }
 }
示例#2
0
        public void Fillgrid()
        {
            DataTable dtClusterHealth = VSWebBL.DashboardBL.ClusterHealthBL.Ins.GetData();

            dtClusterHealth.PrimaryKey   = new DataColumn[] { dtClusterHealth.Columns["ID"] };
            ClusterHealthGrid.DataSource = dtClusterHealth;
            ClusterHealthGrid.DataBind();
            ((GridViewDataColumn)ClusterHealthGrid.Columns["ClusterName"]).GroupBy();
            Session["ClusterHealth"] = dtClusterHealth;
        }