In output file i have 2 columns Ticket Number and Status i want to check the data in both the columns if i found both columns have same value( duplicates) bot has to remove first row and last row should be their how to do it
dtOutput = (From row In dtTickets.AsEnumerable()
Group row By TicketNumber = row("Ticket Number").ToString(), Status = row("Status").ToString() Into Group
Select Group.Last()).CopyToDataTable()