Finding out if a value exists in a database column

Hello,

Try this:
yourDT.AsEnumerable().Any(Function(x) x("Column1").ToString = DesiredValue)
It will return True if any of the rows match the predicate.

25 Likes