how to traverse a datarow in as datatable and modify that datarow
-
I have a gridview to whom i have provided a datatable as a datasource i hve some modifications to be made in one of the rows that i select from the gridview the same modifications should be made in the datatable how do i go abt with it.
send me the code..so that i could tell u properly
-
send me the code..so that i could tell u properly
i managed it . i took a non editable column of the grid view in the sesion and used it as unique key for modification. traversed the datatable foreach (DataRow datar in dtvalues.Rows) { if (datar[0].ToString() == Dl_NO_Hold) { datar[1] = txtFname.Text; datar[2] = txtLName.Text; } } and replaced it
-
i managed it . i took a non editable column of the grid view in the sesion and used it as unique key for modification. traversed the datatable foreach (DataRow datar in dtvalues.Rows) { if (datar[0].ToString() == Dl_NO_Hold) { datar[1] = txtFname.Text; datar[2] = txtLName.Text; } } and replaced it
Great..It must have worked well.....