Convert DataTable Column to String Array

Hi,

Try like this,

List(of string) = (From row in dt.AsEnumerable() Select Convert.Tostring(row(“ColumnName”))).ToList()

replace the “ColumnName” with your datatable column name or use index of the column.

12 Likes