how can i compare a row in two data tables

A

adeelanjum2001

I have two datatables with same structure. i want to compare the values
in each row. for example: datatable1.rows(0).item(0) =
datatable2.rows(0).item(0)
one way to compare the rows in datatable is to check them in loop and
doing element by element. is there any other way
thanks in advance for any help
 
C

Cor Ligthert [MVP]

You can use other methods,

By instance serialize the datarows and than compare this.

However there will probably nothing faster than the in VBNet very fast
method of comparing by looping through the objects.

What is the reason that you don't want to use this very fast method and opt
for a more time consuming one?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top