Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to query a dataTable using Linq -- Where EmpName In ("A", "B", "C") ?

$
0
0
Let's say I have a dataTable (DataTable dt;) which gets populated with 100 rows of data of which one column in dt is called EmpName and is unique and dt contains 6 columns (EmpName, col2, col3, col4, col5, col6).  What would be the Linq expression to get a list of rows (with all 6 columns) where EmpName in ("Jon", "Brad", "Davis", "Charlie") ?

Rich P


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>