Convert a datatable into string and add a delimiter

I have a datatable DT consist of column name ID. I need to convert it to DT string and add a delimiter (-) .I am using output datatable …Can you please help me to do it

Give a try at:
strFlatten =
String.Join("- ", dtData.AsEnumerable().Select(Function (x) x("ID").toString.Trim))

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.