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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show decimal number in GDBG?

Thread ID:

Created:

Updated:

Platform:

Replies:

26272 Mar 18,2005 01:24 AM UTC Mar 18,2005 01:54 AM UTC WinForms 1
loading
Tags: GridControl
Frank Lin
Asked On March 18, 2005 01:24 AM UTC

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 18, 2005 01:54 AM UTC

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.

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

;