need to get some names from a column but no names should be repeated.
Welcome to the community
Please try this
Dt.AsEnumerable.Select(function(x) x("ColName").ToString).Distinct.ToArray()
Cheers
Welcome to forums
Declare an string array variables let’s say arrNames
Now use assign as below
arrNames = YourDatatable.AsEnumerable.Select(function(x) x(“ColName”).ToString).Distinct.ToArray()
Hope this will help you
Thanks,
Srini