How to get column names of data table to an array?

Hi @Nekrom

Refer the below linq query to extract column names from datatable

(From dc In dt.Columns.Cast(Of DataColumn)
Select dc.ColumnName).ToArray()

Refer the below workflow.

Sequence.xaml (7.3 KB)

14 Likes