Jump to content

DBGrid Change font colour of a cell


MOGSY

Recommended Posts

Hi

I would like to change the font colour of a cell in UniDBGrid depending on time. I have tried followings but it does not work.

            UniDbGrid1.Columns[0].Color := clRed;
            UniDbGrid1.RefreshCurrentRow;
            UniDbGrid1.JSInterface.JSCall('view.refresh', []);

How can we invoke the UnidbGridDrawColumnCell from code without refreshing the data from server?

Regards

Link to comment
Share on other sites

Hi 

Thank you for suggestions,

The main point is the font colour need changing depending on a datetime value of a column from now, currently I am calling a function to evaluate the data and change the colour.

Is there a way of firing UnidbGridDrawColumnCell?

regards.

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.

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