Answers for "how to change name of datatable column"

C#
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

Code answers related to "how to change name of datatable column"

C# Answers by Framework

Browse Popular Code Answers by Language