i have 2 DataTables with Data (dtm and dtl). I must find out if exist a DataRow from DataTable1 in Datatable2. I have a combined primray key of 3 columns. I know that i can get the DataTable primarykey like this.
DataColumn[] pkcol;
pkcol = dtm.PrimaryKey;
Is it possible to use the Find method like this?
if (dtl.Rows.Find(dtm[pkcol]) == null)
{
}
I must realize an DataTable Sync Method. So i go foreach Datarow in dtm.Rows and Foreach Datarow in dtl.Rows. It would be great if i can go ahead over the table and search for if exist the datarows primary key value in the table. Any ideas? Please help. Thanks