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 in a cell

Thread ID:





24373 Feb 2,2005 06:49 PM UTC Feb 3,2005 03:13 PM UTC WinForms 4
Tags: GridControl
Tim Aquino
Asked On February 2, 2005 06:49 PM UTC

Hi, How do I set percentage field in a cell? I''ve found some topics discussing this but all links to the samples are broken. Thanks,

Administrator [Syncfusion]
Replied On February 2, 2005 11:48 PM UTC

Hi, You can get the % to show in a cell by just setting the GridStyleInfo.CellValueType to, say, double, and setting the GridStyleInfo.Format to "P". This would let you type 1 and see 100 %, or type .01 and see 1 %. Regards, Jay N

Tim Aquino
Replied On February 3, 2005 11:45 AM UTC

Hi, Maybe I did not explain my problem really well. I already specified cellvaluetype to double and the format to ''P''. But my problem is like the problem I found in the older posts. 1. If the value displayed is 2.2 %, changing the value to 2.3 % gives an error msg saying 2.3 % is not valid ''double'' because of the % sign (there was a link/sample in the older posts provided by Clay to get around this but the link and/or sample is broken). 2. I want to enter 2 and still display it as 2 %, not 200 % (there was another link/sample to get around this in the older posts, but again that link was dead). Thanks,

Tim Aquino
Replied On February 3, 2005 11:50 AM UTC

Here are old topics that provided the samples to get to get around the problem. However, the links to the samples are dead.

Administrator [Syncfusion]
Replied On February 3, 2005 03:13 PM UTC

Sorry for the inconvinience. These links should work: Stefan


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