📅  最后修改于: 2022-03-11 14:48:43.756000             🧑  作者: Mango
// i could be column index
dataTable.Columns[i].ColumnName = "SubjectMarks";
// columnName dynammic
dataTable.Columns["columnName"].ColumnName = "SubjectMarks";