We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Edit input cell restriction . .

i want a cell in a virtual grid to be editable by a user but i want to enforce the following restriction .. Any Number or a list of predefined harded string values. for example, if the predefined values where: AA, BB & CC These would all be valid values for user input: 10, .01, 100, AA, BB, CC Another other letter or character combination would not be valid or allowed.. thks, ak

1 Reply

AD Administrator Syncfusion Team August 3, 2005 03:25 PM UTC

You can handle the CurrentCellValidateString event. In the handler, e.Text will hold teh proposed text. If you do not want to accept it, set e.cancel = true. This event should be hit on each keystroke.

Live Chat Icon For mobile
Up arrow icon