how to rename a column of a datatable from excel
Hi @suruchi120294,
Did you try this
dataTable.Columns["OldColumnName"].ColumnName = "NewColumnName";
Thanks,
Prankur
10 Likes
got it . thanks alot @PrankurJoshi
Hey @suruchi120294
This is most common query so will you please do a favor next time search forum first for this instead of a new thread
Thanks in Advanceā¦!!
Regardsā¦!!
Aksh
1 Like
@aksh1yadav yes sure