I am trying to do custom validation on a Gridview while updating the altered value.
My Gridview is in edit mode that looks like below specified.
I can successfully update the Active field with TRUE or FALSE value.
My problem is when some one updates the Active field with spelling mistake of True/False. eg: Tru,Fals,Flase etc... as below mentioned.
When i try to update the altered Active entry with incorrect spelling. It goes to error as mentioned below.
I get the above error immediatelyafter clicking update.
I think after clicking "update" GridView changes from edit mode to read mode and the actual update to DB happens only when i click on "SAVE" button.
So i need to validate the above case like a pop up or something saying "Please enter the correct value".
Note: 1.Type of "Active" is bit in database. So, it only takes True/false in "GridView" component and 0/1 in database..
OR
Is there any other way to handle the situation?
Thanks in advance.