MOGSY Posted May 16, 2021 Share Posted May 16, 2021 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2021 Share Posted May 16, 2021 19 minutes ago, MOGSY said: UnidbGridDrawColumnCell Hello, What code are you using on this event? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted May 16, 2021 Share Posted May 16, 2021 Some ideas: https://stackoverflow.com/questions/25186921/change-row-background-color-based-on-cell-value-datatable/42680866 https://datatables.net/forums/discussion/62460/changing-row-color-at-rendering-time-based-on-column-values Quote Link to comment Share on other sites More sharing options...
MOGSY Posted May 16, 2021 Author Share Posted May 16, 2021 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2021 Share Posted May 16, 2021 2 minutes ago, MOGSY said: Is there a way of firing UnidbGridDrawColumnCell? 7 hours ago, Sherzod said: What code are you using on this event? Quote Link to comment Share on other sites More sharing options...
MOGSY Posted May 16, 2021 Author Share Posted May 16, 2021 This is a function is called from timer event. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.