Show currency in TCRDBGrid

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Show currency in TCRDBGrid

Post by oz8hp » Wed 14 Oct 2009 07:41

I use the TCRDBGrid from my UniDAC package and would like it to show currency values with 2 digits after decimalpoint, but no matter what I do it won't do so.

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

Post by Plash » Thu 15 Oct 2009 09:00

Create fileds in Field Editor. Then set the DisplayFormat property of the field to #.## or #.00

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Thu 15 Oct 2009 09:17

FieldEditor???

I have a columneditor on the grid and no DisplayFormat there.

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

Post by Plash » Fri 16 Oct 2009 08:11

Right click the TUniQuery or TUniTable component. You can select Field Editor from the context menu of these components.

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Mon 19 Oct 2009 05:30

Thanks - that I had not seen :D
But not it looks like it is working like I want it to do.

Thanks again

Post Reply