Hi, I would like to get all values in column C and store it in a variable without using loop function because I have more than 10k data and it would be time consuming for me to loop through every row.
I tried using multiple ways (example as below) that I found in this forum but all of it doesn’t work.
e.g.
(From row In DT.AsEnumerable() Select Convert.Tostring(row(2))).ToList()
(From r In dt.AsEnumerable Select r(2).ToString.Trim).ToArray
@jenkim
I would suggest to use: dt1.AsEnumerable.Select(Function( r) r(2).ToString.Trim).ToList
returning list of strings
Your StringListVar. toString is not displaying the values, but the datatype
following can be used:
YourListVar.Count.toString - returning the count of the list
listing all values: String.Join(" | ", YourStringListVar)
but listing 10k row data maybe is not helpfully.