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.

Percentage Field

Thread ID:

Created:

Updated:

Platform:

Replies:

20427 Oct 18,2004 05:13 PM Oct 19,2004 04:59 PM Windows Forms 4
loading
Tags: GridControl
Paul
Asked On October 18, 2004 05:13 PM

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 05:19 PM

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

Paul
Replied On October 18, 2004 05:44 PM

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 12:48 AM

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

Paul
Replied On October 19, 2004 04:59 PM

thanks, that was exactly what i was after.

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.

;