Select column from datatable

assign this to a new Datatable variable

image

new DataView(dt).ToTable(false,new List(Of String)({"ColumnName"}).ToArray)

to select multiple columns (ColumnName1 and ColumnName2) to new DT
new DataView(dt).ToTable(false,new List(Of String)({"ColumnName","ColumnName2"}).ToArray)

3 Likes