DataTable dt = new DataTable();
    static DataView view = new DataView();
    dt.Columns.Add("商品名称");
    dt.Columns.Add("商品编号");
    dt.Columns.Add("价格");
    dt.Columns.Add("购买时间");
    row["商品名称"] = s1.Sname;
    row["商品编号"] = s1.Picpath.Substring(0, 6);
    row["价格"] = s1.Pri;
    row["购买时间"] = time;
    dt.Rows.Add(row);
    控件.DataSource = view;
    控件DataBind();
    view = dt.DefaultView;
    string sql="商品编号 like '%" + goodId + "%' and 商品名称 like '%" + goodName + "%' and 购买时间 >#"+buyDate+"#'";
    view.RowFilter = sql;
    控件.DataSource = view;
    控件DataBind();

相关文章:

  • 2021-09-08
  • 2022-12-23
  • 2021-12-09
  • 2022-01-08
  • 2021-04-21
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-06-11
  • 2021-04-12
  • 2022-12-23
相关资源
相似解决方案