Can anyone please suggest how to compare the duplicate rows in Datatable(inputDT)and Remove Duplicate Row item looping through each row and comparing each row using Filter Datatable activity.
i need out put like this:
uniqueDT = (From row In dt.AsEnumerable()
Group row By key = New With {
.OrderCode = row.Field(Of String)("Order Code"),
.Description = row.Field(Of String)("Description"),
.TransactionID = row.Field(Of String)("Transaction ID")
} Into Group
Select Group.First()).CopyToDataTable()
Dim previousOrderCode As Object = Nothing
For Each row As DataRow In dataTable.Rows
If previousOrderCode IsNot Nothing AndAlso row("Order Code").Equals(previousOrderCode) Then
row("Order Code") = DBNull.Value
Else
previousOrderCode = row("Order Code")
End If
Next