Answers for "c# rename datatable column"

C#
0

data table rename column c#

dataTable.Columns["Marks"].ColumnName = "SubjectMarks";
Posted by: Guest on September-22-2020
0

change column name in datatable C#

// i could be column index
dataTable.Columns[i].ColumnName = "SubjectMarks";
// columnName dynammic
dataTable.Columns["columnName"].ColumnName = "SubjectMarks";
Posted by: Guest on August-03-2021

C# Answers by Framework

Browse Popular Code Answers by Language