In an excel i have values given in a column i need to change it to comma separated data.
Example
In column A i have the values
24
25
27
28
i need these values in a string as “24”,“25”,“27”,“28”
In an excel i have values given in a column i need to change it to comma separated data.
Example
In column A i have the values
24
25
27
28
i need these values in a string as “24”,“25”,“27”,“28”
You can declare a variable as Array and write as below
datatablename.AsEnumerable().Select(Function (a) a.Field(of string)(“columnname”).ToString).ToArray()
Hope this helps you
Thanks
This would work, good one @Srini84