I have not worked much on Datagridviews. But first of all read all the filled rows in DGview1 and store it as, say, RDGView1. then read filled rows in DGview2 and store it in, say, RDGView2. Now use two For loops, first for RDGView1 & inner one for DGView2. After first loop statement store all column data in a variable like DDGView1 for each row one by one and in inner loop save data of all columns for row in , say, DDGView2. It may be like this
-
RDGView1=No. of filled rows in DGView1
-
RDGView2=No. of filled rows in DGView2
-
For i = 1 to RDGView1
-
DDGView1=data of first col of row i + data of second col of i row + ...+data of last col of row i (of DGView1)
-
For j = 1 TO RDGView2
-
DDGView2=data of first col of row i + data of second col of i row + ...+data of last col of row i (of DGView2)
-
IF DDGView2=DDGView1 then
-
here delete row j of DGView2
-
End If
-
Next
-
Next
-
I think I tried to make a logic to be used.