The idea is that you can compare the records that are in a Grid one by one, that is, if I am in the first record in a specific column, compare that same column with the next record and if it finds equality, it will return that found it, if it does not find that it continues advancing to the end of the grid, and then advances another record and does the same operation.