Check if String / Record exists in DataTable

Viewed 130793

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

4 Answers
Related