protected void Page_Load(object sender, EventArgs e) { if (Request["Sqlfilter"] != null) { string sqlfilter = Server.UrlDecode(Request["Sqlfilter"]); DataSet ds = QuCheck.QueryWGD(sqlfilter); this.grvWGD.DataSource = ds; this.grvWGD.DataBind(); } }
private void BindGridView() { try { string sql = GetSqlWhere(); //DataSet ds = null; DataSet ds = QuCheck.QueryWGD(sql); this.grvWGD.DataSource = ds; this.grvWGD.DataBind(); //SetSumInfo(); //this.SetDisplayList1.InitSetListControl(this.grvWGD, SysBaseConfig.WGD_Q_PAGE); //this.SetDisplayList1.SetGridViewDisplay(grvWGD); } catch (Exception ex) { String strEx = ex.Message; this.PrintfError("数据访问错误,请重试!"); } }