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

How do I make the ggc display a decimal like 345.5462 as 345.55

Thread ID:

Created:

Updated:

Platform:

Replies:

67366 Aug 15,2007 11:27 PM UTC Aug 17,2007 04:15 AM UTC WinForms 1
loading
Tags: Grouping
James Blibo
Asked On August 15, 2007 11:27 PM UTC

I have tried...

Format = "$#,###.00;($#,###.00); " but that doesn't work. The ggc is rounding to a whole dollar

Golda Rebecal [Syncfusion]
Replied On August 17, 2007 04:15 AM UTC

Hi James,

Sorry for the delay in responding.

To make the GridGroupingControl display a decimal like 345.5462 as 345.55, please use the code given below.
this.gridGroupingControl1.TableDescriptor.Columns["Col0"].Appearance.AnyCell.CellValueType = typeof(decimal);
this.gridGroupingControl1.TableDescriptor.Columns["Col0"].Appearance.AnyCell.Format = "c";

Please refer to the attached sample that illustrates the same.
http://websamples.syncfusion.com/samples/Grid.Windows/F67366/main.htm

Kindly let me know if this helps you.

Best regards,
Golda

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.

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

;