Hi @aquinn ,
I believe Todays Stock
is a row value and corresponding to it you would require the Product Code column’s value. If that is the case, then you can check with the below Expression :
DT.AsEnumerable.Where(Function(x)x(0).ToString.Equals("Todays Stock")).Select(Function(x)x("Product Code").ToString).FirstOrDefault
In the above Expression, we have assumed that the row value Todays Stock
will be present in the First Column, and hence we have used the index 0
.
For Learnings on Linq, You could check the below Posts :
Do Also note that, we have assumed your data representation also, If you could provide us with the Data format or Representation then we could confirm the working.