problem with display in TDBGrid

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
antonx
Posts: 4
Joined: Fri 01 Jun 2007 12:42

problem with display in TDBGrid

Post by antonx » Fri 01 Jun 2007 12:48

i use TDBGrid connected to database by IBDA components..
when im displaying NUMERIC (18,4) fields there is a problem
if its '100,00' TDBGrid displays '100' (without 00 after ',')
when Grid was connected by BDE components everything was ok..
how tu fix it? TIBCTable doesnt have FieldDefs property?
im using FireBird 2.0

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 04 Jun 2007 07:57

Open Fields Editor for the TIBCTable component, and create all fields. Then set the DisplayFormat property to #.00 for fields those values should be displayed with 00 after the decimal point.

antonx
Posts: 4
Joined: Fri 01 Jun 2007 12:42

Post by antonx » Tue 05 Jun 2007 11:57

big thx. :)

Post Reply