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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Dec 7, 2013, 1:13 AM
Before binding data to datagridview, just take the distinct values something like this,
var distinctValues = yourdatacollection.Distinct(yourcomaparer);