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