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

Percentage Field

Thread ID:





20427 Oct 18,2004 09:13 PM UTC Oct 19,2004 08:59 PM UTC WinForms 4
Tags: GridControl
Asked On October 18, 2004 09:13 PM UTC

Hi, I currently a percentage cell on my bound datagrid. When I use the percentage format : e.Style.Format = "#.00%" it multiplies my value by 100. I would like to see 3 formatted like this: 3.00% not 300.00%. How can I do this? Thanks

Administrator [Syncfusion]
Replied On October 18, 2004 09:19 PM UTC

Here is a forum thread that references other threads that have samples of a couple of ways to handle this. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=20010

Replied On October 18, 2004 09:44 PM UTC

Hi, thanks for the reply. I check out both of those solutions and the second one is close to what I am after. The "PushbuttonOnCheck" solution has no decimal places. The "WindowsApplication3" solution only works properly if the % sign is not cleared when the user is entering data. Do you have any other suggestions? Thanks

Administrator [Syncfusion]
Replied On October 19, 2004 04:48 AM UTC

Another way to try to do this is to use the two formatting event, QueryCellFormattedText (formats the display text) and SaveCellFormattedText (formats the object that is saved after a change). Here is a sample. percent_6600.zip

Replied On October 19, 2004 08:59 PM UTC

thanks, that was exactly what i was after.


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

Live Chat Icon For mobile
Live Chat Icon