Is there anyway of filtering datatable based on other datatable. something like below:
foreach (datarow dr in somedatatable.select("id= someothertable.rows["someotherid"])
{
dr[somefield]=someothertable[someotherfield];
}
You can do a ordinary SQL select using DataView
DataView dv = new DataView(dataTableToFilter);
dv.RowFilter = ""//SQL condition
Complete useful example in your case you can find here:
Creating a DataTable from a DataView
Where you apply a DataView filter to a DataTable and create a new DataTable from filtered rows.