Check if String / Record exists in DataTable

前端 未结 4 638
既然无缘
既然无缘 2020-12-30 08:59

I have a String and I need to check if any column \"item_manuf_id\" in DataTable dtPs.Rows equals to certain value

I can loop over all Rows and compare



        
4条回答
  •  一整个雨季
    2020-12-30 09:55

    Something like this

     string find = "item_manuf_id = 'some value'";
     DataRow[] foundRows = table.Select(find);
    

提交回复
热议问题