SyntaxFix
Write A Post
Hire A Developer
Questions
You need something like this:
foreach(DataColumn c in dr.Table.Columns) { MessageBox.Show(c.ColumnName); }