How To Build DataTable and Compare with another DataTable

If I am understood correctly what you are expecting, I hope below link will help you.