Hello Manju00,
I prepared a sample for you and attached it to this post. I am using two grids in card view mode and checking if the values in the cells of the rows match exactly. You are free to make you own check-up to achieve the desired behavior.
Please do not hesitate to let me know if I misunderstood you or if you need additional assistance.