To deploy a bit to @lazyberezovsky, you can use an anonymous type projection to get all the fields you need:
ds.Table[0].AsEnumerable()
.Where<DataRow>(r => r.Field<int>("productID") == 23)
.Select(r => new { ProductName = r.Field<string>("productName"),
Description = r.Field<string>("description"),
Price = r.Field<decimal>("price") });
I don’t know what name and enter your product fields, descriptions and prices, so you will have to replace them.
source
share