Jump to content

How to use DefaultFloatFormat in UniDBGrid?


Recommended Posts

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



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?



Link to comment
Share on other sites

Join the conversation

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

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...