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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...