8 July 2014

How to check if a value exists in a datatable in c#



bool exists = dt.Select().ToList().Exists(row => row["row_name"].ToString() == "value");

No comments:

Post a Comment