Answers for "update column in datatable c#"

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
1

datatables modify rows

const table = $("#tableId").DataTable();

table.rows().every( function() {
	const node = this.node(); // html node -- tr
  	const row = $(node).find('td:eq(2)'); // 3rd (0-index) column -- td
}
Posted by: Guest on March-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language