Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

change column name in datatable C#

// i could be column index
dataTable.Columns[i].ColumnName = "SubjectMarks";
// columnName dynammic
dataTable.Columns["columnName"].ColumnName = "SubjectMarks";
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #column #datatable
ADD COMMENT
Topic
Name
8+4 =