I have a DataSet where there is a column called PName, PCode and PDesc. Is there anyway that i could set my datasource based on a query something like
gridview.DataSource = Get me everything where PName LIKE 'somevalue'
OR PCode LIKE 'somevalue'
OR PDesc LIKE 'somevalue'
I have tried to find about using LINQ but i do not see any with OR’s , is this possible?. I would appreciate any pointers / help.
You could try this out:
Also, AsEnumerable is part of the System.Data.DataSetExtensions library.