DGBrid and float with Zeos?
Posted: 21.12.2005, 17:24
I simply want to display a float value on a DBGrid when the underlying database is Firebird with Zeos.
With BDE I can set the formatting for FLOAT and DECIMAL database columns using the columns editor and persistent fields. This does not exist for Zeos.
With Zeos I can format single values when assigning it e.g. to TEdit field with FloatToStr.
For a DBGrid I don't have this option. The float value is displayed as a weird integer.
I tried several DBGrids like TMDBGrid, TJvDBGrid and TDBGrid, all three can't show floats.
Is this a problem with the grids or is this a feature which a light middleware like Zeos does not support. Does someone know about a workaround?
I use D7 and Firebird 1.5 and Zeos 6.5.1
With BDE I can set the formatting for FLOAT and DECIMAL database columns using the columns editor and persistent fields. This does not exist for Zeos.
With Zeos I can format single values when assigning it e.g. to TEdit field with FloatToStr.
For a DBGrid I don't have this option. The float value is displayed as a weird integer.
I tried several DBGrids like TMDBGrid, TJvDBGrid and TDBGrid, all three can't show floats.
Is this a problem with the grids or is this a feature which a light middleware like Zeos does not support. Does someone know about a workaround?
I use D7 and Firebird 1.5 and Zeos 6.5.1