Get all the column names From datatable using linkQ query

Hi @Tabbu

Use this query to get all columns name

column_names= dt.Columns.Cast(Of DataColumn).Select(Function(m) m.ColumnName.ToString).ToList()

Regards,
Nived N

3 Likes