Avatar of swathi111
swathi111
 asked on

How to do validation for the grid?

Hi,

Pls find the attached image.

I have 2 dropdowns (NewsSector, NewsSectorType). when i select values from these 2 dropdowns and click on Add button, it will add rows to grid. Here i need to do validation ie if user is trying to add the same row which is alreday existed then it has to show pop up message that "Please select another NewsSector and NewsSectorType as it is already existed".

can we do this validation in client side? If so, how?


Thanks,
validation.jpg
ASP.NET

Avatar of undefined
Last Comment
swathi111

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Obadiah Christopher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
swathi111

ASKER
I tried this. Its working perfect. Thanks for your code.
Your help has saved me hundreds of hours of internet surfing.
fblack61