Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Dim duplicates = DataSourceTable.AsEnumerable().GroupBy(Function(i) i.Field(Of String)("FieldName")).Where(Function(g) g.Count() > 1).Select(Function(g) g.Key)
  2. DataSourceTable = New DataTable
  3. Dim row As DataRow
  4. For Each dup In duplicates
  5. row = DataSourceTable.NewRow
  6. 'row(0) = dup// I want get all values columns with index
  7. Next
  8.  
  9. Dim duplicates = DataSourceTable.AsEnumerable()
  10. .GroupBy(Function(i) i.Field(Of String)("FieldName"))
  11. .Where(Function(g) g.Count() > 1)
  12. .Select(Function(g) g.Key)
  13.  
  14. Dim duplicates = DataSourceTable.AsEnumerable()
  15. .GroupBy(Function(i) i.Field(Of String)("FieldName"))
  16. .Where(Function(g) g.Count() > 1)
  17.  
  18. Dim duplicates = DataSourceTable.AsEnumerable()
  19. .GroupBy(Function(i) i.Field(Of String)("FieldName"))
  20. .Where(Function(g) g.Count() > 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement