Link to home
Start Free TrialLog in
Avatar of elmbrook
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?

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


}
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of kevinhigg
kevinhigg

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of elmbrook
elmbrook

ASKER

duhh...my bad...lol...was a long night