I have been using an Excel file where i have to fetch the unique value from a column , there is an single value into it , I have tried using it but its not been working in my case
Code i have been using
String1 = dt.AsEnumerable.Select(Function(x)x(“Value2”).ToString).Distinct.First
Please suggest how can i get it , Using the above i am getting the blank value
Yoichi
(Yoichi)
February 16, 2022, 2:45pm
3
Hi,
Can you try the following expression?
String1= dt.AsEnumerable.Where(Function(x) Double.TryParse(x(“Value2”).ToString,New Double)).First().Item("Value2").ToString
Regards,
system
(system)
Closed
February 19, 2022, 2:46pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.