elmbrook
asked on
Uppdate value in datatable when using select statement
Hi
How do I put the amount back into the datatable with a new value when I have done a select statement?
How do I put the amount back into the datatable with a new value when I have done a select statement?
DataRow[] foundRow = dtPrev.Select("memno = '" + memno + "'" )
if (foundRows.Length > 0)
{
for (int i = 0; i < foundRows.Length; i++)
{
amt = Convert.ToDecimal("10.95")+ Convert.ToDecimal(foundRows[i]["amount"].ToString());
// Here I need to put the amount back into the datatable
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER