//DataView    
  DataView   dv   =   new   DataView();  
  dv.Table   =   DataSet1.Tables["Suppliers"];  
  dv.RowFilter   =   "City   =   'Berlin'";  
  dv.Sort   =   "CompanyName   DESC";  
   
   
  //Select  
  string   strExpr;  
  string   strSort;  
   
  strExpr   =   "id   >   5";  
  //   Sort   descending   by   column   named   CompanyName.  
  strSort   =   "name   DESC";  
  //   Use   the   Select   method   to   find   all   rows   matching   the   filter.  
  DataRow[]   foundRows   =    
  customerTable.Select(   strExpr,   strSort,   DataViewRowState.Added   );

相关文章:

  • 2022-12-23
  • 2021-11-15
  • 2021-08-17
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-11-14
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案