Jump to content

Recommended Posts

  • 1 year later...
  • 1 year later...
  • 1 year later...
Posted

Hi.

 

I'm trying to use DefaultFloatFormat but nothing changes when display data in the grid.

 

I have dynamic columns, not columns created in design time.

 

Could be this the reason?

 

Thanks.

  • 2 months later...
  • 3 weeks later...
Posted

Hi.

 

I'm trying this, as I do in vcl apps, with no success.

 

In the on draw column cell of the grid:

 

   if column.field.DataType = ftfloat then
      TFloatField(column.field).DisplayFormat := ',0.0000';

 

 

The only difference, is that in vcl, I put this code in the grid drawdatacell event.

 

some help with this?

 

thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...