Hi All ,
I need to get column names / headers in an array
Any function available for this
Hi All ,
I need to get column names / headers in an array
Any function available for this
Hi @Swathi_U
Check this out
DT.Columns.Cast(Of DataColumn).Select(Function(x)x.ColumnName).ToArray
DT is your datatable
Thanks
Hey @Swathi_U ,
You can refer this thread How to get column names of data table to an array?
Thanks,
Sanjit
Sure sanjit
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.