//绑定Gridview1 private void BindGrid() { try { DataSet ds = CustomerParam.GetList(""); if (ds != null) { this.GridView1.DataSource = ds; this.GridView1.DataBind(); } } catch { this.PrintfError("连接数据库出错,请重试!"); return; } }
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("数据访问错误,请重试!"); } }