SyntaxFix
Write A Post
Hire A Developer
Questions
You would still need to go through the DataTable class. But you can do so using your DataRow instance by using the Table property.
DataTable
DataRow
Table
foreach (DataColumn c in dr.Table.Columns) //loop through the columns. { MessageBox.Show(c.ColumnName); }