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

Restricting a textbox in grid to only two decimal places

Thread ID:





92851 Feb 9,2010 05:14 AM UTC Feb 11,2010 12:22 PM UTC WinForms 1
Tags: GridControl
Asked On February 9, 2010 05:14 AM UTC

Hi ,
I have a textbox inside a gridcontrol. The text box can take float values. I need to restict the textbox to accept only two decimal places. If the user tries to enter more than that ,it should not be reflected on to the text box.

I tried to do this using keypress event, but the keypress event is not getting fired when I press keys in a text box.

Please help me,
Thanks in advance.

Rajadurai C [Syncfusion]
Replied On February 11, 2010 12:22 PM UTC

Hi Ponsakthi,

Thanks for your interest in Syncfusion Products.

It seems, you have submitted similar inquiry in Direct Trac as incident #64509 which was updated with solution. Please followup with that for any further queries regarding this.

Thank you for using Syncfusion Products.



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

or the page will be automatically redirected to 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