对DataView 排序的时候
DataView dv=new DataView(table,RowFilter,sort,RowState);这里的 第二个参数 能不能 去掉 我去掉了它提示错误,我想不要筛选的参数得怎么做呀 。帮忙 ,谢谢。

解决方案 »

  1.   


    1. 初始化 DataView 类的新实例。[C#] public DataView();2 . 用指定的 DataTable 初始化 DataView 类的新实例。[C#] public DataView(DataTable);3. 用指定的 DataTable、RowFilter、Sort 和 DataViewRowState 初始化 DataView 类的新实例。[C#] public DataView(DataTable, string, string, DataViewRowState);
      

  2.   

    then pass "" or nullDataView dv=new DataView(table,null,sort,RowState);
      

  3.   

    saucer:谢谢  知道了
    powerllr: 谢谢 但这些我也知道的 想排序,不要过滤 我的意思是