dataView1.RowFilter = strDropDownList1 + "AND"+strDropDownList2;

解决方案 »

  1.   

    CXJBH和CBH的类型都是数字吗?
      

  2.   

    改为 :
    dataView1.RowFilter = strDropDownList1 + " AND "+strDropDownList2;
    试一试。
      

  3.   

    改为 :
    dataView1.RowFilter = strDropDownList1 + " AND "+strDropDownList2;
    还是报错
      

  4.   

    如果都是 char 那么就应该是 public string strDropDownList2 = " CXJBH = '1' ";
    public string strDropDownList1 = " CBH = '1' ";呀,怎么直接用来和数字比较呢