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

cell format

Thread ID:





89280 Aug 21,2009 04:37 AM UTC Aug 21,2009 02:04 PM UTC WinForms 1
Tags: GridControl
Stephen Hui
Asked On August 21, 2009 04:37 AM UTC


Is there an easy way to format a cell so that when user type in a number, say "80", when he finishes editing, the cell value will becomes "80%"? I used the Model.ColStyles.FormmatedText property but "###.##%" requires me to enter absolute value, which is 0.8


Rajadurai C [Syncfusion]
Replied On August 21, 2009 02:04 PM UTC

Hi Stephen,

Thanks for your interest in Syncfusion Products.

If you would like to append the percentage sign with the value entered in cell, it can be achieved by setting FormattedText property of GridStyleInfo object in PrepareViewStyleInfo event. Here is the code for your reference.

if (e.ColIndex == 5)
e.Style.FormattedText = e.Style.Text + "%";

Here is a minimal sample in which this has been implemented in gridcontrol.



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