I'm fairly new to C# so please bear with me...
I have a dataset with 2 tables:
What I want to do is update the ID on the Cost table where Premises[PremNo] equals Cost[PremNo].
So far I have a foreach that goes through all the rows and updates them, I just don't know how to specify where I need it to update from
foreach (DataRow row in ds.Tables[1].Rows)
{
foreach (DataColumn ID in ds.Tables[1].Columns)
{
row["ID"] = **12345**;
}
}
I need someone to point me in the direction for the 12345 bit.
ds.Tables[1] is Cost, and ds.Tables[0] is Premises
Any help would be greatly appreciated.
Dan