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.
Unfortunately, activation email could not send to your email. Please try again.

Edit input cell restriction . .

Thread ID:

Created:

Updated:

Platform:

Replies:

32551 Aug 3,2005 11:13 AM Aug 3,2005 11:25 AM Windows Forms 1
loading
Tags: GridControl
Adam K.
Asked On August 3, 2005 11:13 AM

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

Administrator [Syncfusion]
Replied On August 3, 2005 11:25 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;