C# datatable set a field with column name code example Example: data table rename column c# dataTable.Columns["Marks"].ColumnName = "SubjectMarks";