Find datatable columnname by its index in c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna Rajput SinghRank #605 · 4K reputationPosted Jul 16, 2016, 4:44 PM EDT
Nigel FernandesRank #753 · 3.1K reputationPosted Jul 17, 2016, 12:59 AM EDT
string ColName = dt.Columns[0].ColumnName;