Jump to content

TVCLDBColumns Do Not Follow DisplayFormat


Frederick

Recommended Posts

Why does a TVCLDBColumn within a TUniDBGrid and hosting a float field not respect the DisplayFormat property of "#,0.00;-#,0.00"?

In a TColumn of a TDBGrid within a VCL application, the numbers are shown correctly.

--
Frederick
(UniGUI Complete - Professional Edition 1.90.0.1504)
 

TVCLDBColumns Do Not Follow DisplayFormat.png

Grid Columns In VCL App.png

Link to comment
Share on other sites

5 hours ago, wilton_rad said:

put uninumberedit  or UniFormattedNumberEdit in hiddenpanel.

link in column option editor, seting component uninumberedit;

Thank your for your suggestion.

I followed your example and the attached screenshots show that the components are not responding to what has been done.

TUniFormattedNumberEdit And DisplayFormat Set.png

Link to comment
Share on other sites

After fiddling further, I managed to show the correct format for the TFloatField by setting the DisplayFormat as "#,0.00" instead of "#,0.00;-#,0.00' to represent both positive and negative numbers.

Not sure why the Delphi format was not used.

DisplayFormat Not Recognized 2.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...