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.
Syncfusion Feedback

GDBG Format number

Thread ID:

Created:

Updated:

Platform:

Replies:

74057 May 29,2008 09:38 AM UTC May 30,2008 07:24 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 29, 2008 09:38 AM UTC

Dear Sir:

How to format number for all record rows in particular column name "Price" as: #,###.## ?

Thanks,
Harry


SubhaSheela R [Syncfusion]
Replied On May 30, 2008 07:24 AM UTC

Hi Harry,

Thanks for your interest in Syncfusion products.

You can use the Format property of StyleInfo Class to format the numbers in GridDataBoundGrid. Below is the code snippet:


this.gridDataBoundGrid1.Binder.InternalColumns[0].StyleInfo.Format = "#,###.##";


Here is the minimal sample that illustrates the same:

http://websamples.syncfusion.com/samples/Grid.Windows/Grid_WF_GDBGNumberFormat_F72057/main.htm

Please let me know if it helps.

Regards,
Subhasheela R



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

;