Home > Delphi > Display Format on DBGRID Delphi

Display Format on DBGRID Delphi

 

If (Fields[n] is TNumericField) then

TNumericField(Fields[n]).DisplayFormat := ‘#,##0.00′;

Categories: Delphi
  1. December 19, 2010 at 10:47 am

    Note you need to check if this works in countries where they use a comma to separate the units from the fractions (and a point to separate thousands and millions). Also you need to check if it works with millions, milliards/biljons and up in addition to thousands.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: