Answers for "datatable set column names list"

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
0

datatable define name for columns

Javascript123456789$('#example').dataTable( {  "columnDefs": [    { "name": "engine",   "targets": 0 },    { "name": "browser",  "targets": 1 },    { "name": "platform", "targets": 2 },    { "name": "version",  "targets": 3 },    { "name": "grade",    "targets": 4 }  ]} );
Posted by: Guest on May-09-2021

C# Answers by Framework

Browse Popular Code Answers by Language