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.

How to show decimal number in GDBG?

Thread ID:





26272 Mar 17,2005 08:24 PM Mar 17,2005 08:54 PM Windows Forms 1
Tags: GridControl
Frank Lin
Asked On March 17, 2005 08:24 PM

Decimal number from underlying table sometimes will be shown in the fomat like 4.77E-5 in GDBG. How can we set it to its original 0.0000477 ? Thanks.

Administrator [Syncfusion]
Replied On March 17, 2005 08:54 PM

Make sure you have set the GridBoundColumn.StyleInfo.CellValueType for the column to be a double type (or decimal or float type). You set this either in the grid.GridBoundColumns collection or the grid.Binder.InternalColumns depending upon whether you explicitly have added GridBoundColumns or not. Then you can set the GridBoundColumn.StyleInfo.Format to specify the format for the double column. You can try setting it to "F8" or "#.########" or or "0.0000####" some other format string.


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.

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.