I have a grid in that the data is about product code of sugar with serial no printing and lots allotted to them. Now the problem is if there are two records with same product code code and sl_no2 is greater than slno1 and the lot no of slno1 is greater than slno2 lotno. Now we have to show an alert and exit the form. How can I check that from a grid? Please help me.