How to delete Repeated (Somes) data in 2 datagridviews ?
Datagrid1
| ID | Po no |
| ID | Po no |
| 2 | 22 | 2 | 22 | ||
| 2 | 33 | 2 | 33 | ||
| 3 | 33 | 8 | 44 | ||
| 2 | 33 | 2 | 33 |
| ID | Po no |
| ID | Po no |
| 2 | 22 | 2 | 22 | ||
| 2 | 33 | 2 | 33 | ||
| 3 | 33 | 8 | 44 | ||
| 2 | 33 | 2 | 33 |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Dec 6, 2013, 8:13 PM EST
Before binding data to datagridview, just take the distinct values something like this,
var distinctValues = yourdatacollection.Distinct(yourcomaparer);