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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Numeric TextBox

Thread ID:





38363 Dec 10,2005 04:14 PM UTC Dec 10,2005 05:17 PM UTC WinForms 1
Tags: GridControl
Adam K.
Asked On December 10, 2005 04:14 PM UTC

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 05:17 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon