First I have to say, that I am a newby using LINQ. Actually I never used before, but I am having a task where I need to filter a DataTable, using values that will come from a List.
So I will like to know if it’s possible in LINQ to query on a Datatable using values in the List as Filter values. Some one can give me some hint’s
Thank you.
The best way to do this depends on what you plan to do with the filtered results. Do you need the results back as DataTable for further operations, or are you databinding to the results?
Take the example below, which returns a (bindable) enumerator of matching DataRows
If you need a DataTable you could import the rows into another table: