Try this link (its in c#, but if you need the VB code, i translated it below)
http://www.mastercoder.net/viewtopic.php?t=44
VB Code:
Dim distinctVal As Integer = 0 Dim row As DataRow For Each row in testDT If distintVal != row("column") newTable.AddRow(row) distintVal = row("column") End If Next




Reply With Quote