DataRow drow_AllChecked_Records = dt_rptvalues.NewRow(); // create a new row drow_AllChecked_Records["clr_plot_no"] = NewPlot; // set a value in one of its columns foreach (DataRow ddd in dt_rptvalues.Rows) { dt_rptvalues.Rows.Remove(drow_AllChecked_Records); // try to remove it from the datatable. But it was never inserted there. }
foreach
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)