I have a datatable with a column MobileNo…. My datatable has 150 rows and each row has MobileNo… Now how to check every MobileNo is unique by parsing all the datarows of the datatable in c#?
EDIT:
“This datatable is being created by reading a CSV file”
Use Linq and Group By the MobileNo then you will need to traverse the collection and see which MobileNo’s have multiple records and then do whatever you wish to remove what you deem is duplicated.
Edit: From Linq 101 Samples.