Answers for "how to change column name dynamically in data table"

C#
-1

change name of colum in sql table

ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";
Posted by: Guest on September-11-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

Code answers related to "how to change column name dynamically in data table"

C# Answers by Framework

Browse Popular Code Answers by Language