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
close icon

Percentage field in a cell

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,

4 Replies

AD Administrator Syncfusion Team 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


TA Tim Aquino 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,


TA Tim Aquino 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. http://64.78.18.34/Support/Forums/message.aspx?MessageID=20427 http://64.78.18.34/Support/Forums/message.aspx?MessageID=17345 http://64.78.18.34/Support/Forums/message.aspx?MessageID=16888


AD Administrator Syncfusion Team February 3, 2005 03:13 PM UTC

Sorry for the inconvinience. These links should work: http://64.78.52.104/support/user/Uploads/percent_6600.zip http://64.78.52.104/support/user/Uploads/PushButtonOnCheck_1303.zip http://64.78.52.104/support/user/Uploads/WindowsApplication3_7523.zip Stefan

Loader.
Live Chat Icon For mobile
Up arrow icon