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

GDBG Format number

Dear Sir:

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

Thanks,
Harry


1 Reply

SR SubhaSheela R Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon