Jump to content

How to use DefaultFloatFormat in UniDBGrid?


Sherzod

Recommended Posts

  • 1 year later...
  • 1 year later...
  • 1 year later...
  • 2 months later...
  • 3 weeks later...

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...