Link to home
Start Free TrialLog in
Avatar of Ed Zon
Ed ZonFlag for Philippines

asked on

VB.net : How to compare data in same column in different datagridview?

Can you give me example or idea on how to make this happen? Thank you.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

I'm assuming you want a two-way difference, what doesn't match in either grid?

How do you want to show the differences?

I've not done a lot with datagridview but I would probably look at LINQ but there is a previously asked question here that does a one-way difference:
https://www.experts-exchange.com/questions/28135950/VB-net-Compare-columns-in-two-DataGridViews.html?anchorAnswerId=39190157#a39190157
Being a database developer, if I have a control, I would go further back and see what is the data source of both datagridviews and can it be compared at source itself? A FULL OUTER JOIN would be of a great help.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.