Hey all,
I look for duplicate values in an Excel column “PV Number” and add remarks as “Duplicate of row”.
I’m using the below attached code for this condition.
dt.AsEnumerable.GroupBy(Function(r) r(“PV Number”).ToString).Where(Function(g) g.Count>1).SelectMany(Function(g) g).ToList.ForEach(
Sub(r)
If (String.IsNullOrEmpty(r(“REMARKS”).ToString)) Then
r(“REMARKS”)=“DUPLICATE OF ROW”
End If
End Sub
)
How do I get the index like in the below attached screenshot.