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
String id = dtPs.Rows[number]["item_manuf_id"].ToString()
if ("some value".equals(id)) etc.
but I am wondering if there is any way to check if DataTable
contains the record
Something like this
string find = "item_manuf_id = 'some value'";
DataRow[] foundRows = table.Select(find);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With