Answers for "update current row in datatable c#"

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

c# datatable current row

CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid.DataSource, this.gridDataBoundGrid.DataMember];
DataRow dr = ((DataRowView) cm.Current).Row;
this.label1.Text = dr["Col"].ToString();
Posted by: Guest on September-29-2020

C# Answers by Framework

Browse Popular Code Answers by Language