foreach (DataColumn dc in dtfood.Columns) { string lm = dc.ColumnName; } 转载于:https://www.cnblogs.com/yabisi/p/6056248.html