RowFilter只能作为查询条件写入where

解决方案 »

  1.   

    RowFilter中可以写多个过滤条件.可以将GROUP BY做为RowFilter第一个条件
      

  2.   

    to: lht0530 
     你有試成功嗎?拿個 sample 出來.
      

  3.   

    不可以
    可以这样,设dataview1中有字段city
    则dataview1.rowfilter("city='abc'");
      

  4.   

    MSDN:Note   If you use a single table to create an aggregate, there would be no group-by functionality. Instead, all rows would display the same value in the column.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDataDataColumnClassExpressionTopic.asp
      

  5.   

    rowfilter相当与Sql语句的Where
    和group by没有关系。