Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

validating datagrid cell

hi guys

I have a requirment where i want to validate the datagrid cell

This is my datagrid and i want to validate the country column
Id        Name     country
100     Jay           UK
200     Rose        USA

The country column is editable. If user enters any different country other than USA or UK
i want a validation error Alert and the cursor should be set on that editable cell.

Any idea how i can do that and what is the best way?
thanks
Avatar of dgofman
dgofman
Flag of United States of America image

Why you cannot just create a combobox as editableItemrenderer and set dataProvider to USA and UK
In this case you don't need any validations
Avatar of Jay Roy

ASKER

But the users want textbox instead of combobox..
I just want to validate the country and if incorrect show an alert message
and Put the mouse cursor in the textbox.
Can you please provide some sample code how I can do that.

Thx
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial