Exemple #1
0
 //绑定Gridview1
 private void BindGrid()
 {
     try
     {
         DataSet ds = CustomerParam.GetList("");
         if (ds != null)
         {
             this.GridView1.DataSource = ds;
             this.GridView1.DataBind();
         }
     }
     catch
     {
         this.PrintfError("连接数据库出错,请重试!");
         return;
     }
 }
Exemple #2
0
 private void BindKHParam()
 {
     try
     {
         DataSet ds = CustomerParam.GetList("");
         if (ds != null)
         {
             this.grdKHInfo.DataSource = ds;
             this.grdKHInfo.DataBind();
         }
     }
     catch (Exception ex)
     {
         String strEx = ex.Message;
         this.PrintfError("数据访问错误,请重试!");
     }
 }