Jump to content

How to update StringGrid cell style without changing cell text?


rgreat

Recommended Posts

For example, I need to only change text for one cell in a row, but change background color for the whole row.

But seems like OnDrawCell for a cell just does not fire without changing cell text.

And "changing" cell text with the same old value does not work either.

The only way I can guess now is to change the cell text for an every cell in a row twice.

1. To some temporary value.

2. Back to original value.

That's quite ineffective and generate unwanted traffic.

 

Please advise how can I forcibly fire OnDrawCell event?

Or maybe some other solution?

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