Answers for "change column name in datatable C#"


data table rename column c#

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

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

Code answers related to "change column name in datatable C#"

C# Answers by Framework

Browse Popular Code Answers by Language