Here is the option to access the column (header) name of a datatable.
DataSet ds = new
DataSet();
ds.Tables[0].Columns[0].ColumnName
Venkatesan Prabu .J
Head, KaaShiv InfoTech
For free Ebook : http://kaashivinfotech.com/Ebooks.aspx
Here is the option to access the column (header) name of a datatable.
DataSet ds = new
DataSet();
ds.Tables[0].Columns[0].ColumnName
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 250 SHARP for every blog they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · C#Modern CSharp Mastery - Advanced Guide for Experienced DevelopersDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
kuldeep kanaujiaPosted Feb 5, 2024, 6:36 AM EST
DataSet ds = new DataSet(); ds.Tables[0].Columns[0].ColumnName