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.

Numeric TextBox

Thread ID:





38363 Dec 10,2005 11:14 AM Dec 10,2005 12:17 PM Windows Forms 1
Tags: GridControl
Adam K.
Asked On December 10, 2005 11:14 AM

Is there a way to have a numeric textbox that will actually disable the ability to enter in non numeric characters in a grid cell so you dont need to put error handling or checking in the savecellinfo code or cellvalidating code. thks, ak

Administrator [Syncfusion]
Replied On December 10, 2005 12:17 PM

There is a special event set up to handle this key by key validating. In is the CurrentCellValidateString event. It is raised keystroke by keystroke and the proposed value is passed as part of the event args, and you can cancel the keystroke if you do not want the string it generates. If you want to have a cell control to handle this without using an event, you can try using a "Currency" celltype with a blank CurrencySymbol to see if that serves your purpose. (But using the CurrentCellValidateString event is straight-forward.)


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.