snow Posted April 19, 2023 Share Posted April 19, 2023 Hi there, is it possible to add a checkbox to just a single cell (not whole column) of TUniStringGrid during runtime? If so, how to achieve that? Thanks a lot in advance for your help. Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 19, 2023 Share Posted April 19, 2023 Hello, Have you tried searching the forum? Quote Link to comment Share on other sites More sharing options...
snow Posted April 19, 2023 Author Share Posted April 19, 2023 Hi Sherzod, yes I have. But I found only solutions for modifying whole columns and also not really during runtime. What I need is a function like AddCheckBox(Col, Row) which I can call during runtime. Is that possible? Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 19, 2023 Share Posted April 19, 2023 9 minutes ago, snow said: yes I have. But I found only solutions for modifying whole columns and also not really during runtime. Okay. Then you should analyze the solution you found. By your logic, you should parse records, column index, and rewrite your column's renderer method. Quote Link to comment Share on other sites More sharing options...
snow Posted April 21, 2023 Author Share Posted April 21, 2023 Hi Sherzod, is there a possibility to rewrite the renderer function on cell base? The problem with rewriting the renderer function for a column is that my FixedRow gets painted like a normal cell. Thanks in advance. Regards Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 21, 2023 Share Posted April 21, 2023 Hi @snow 8 hours ago, snow said: is there a possibility to rewrite the renderer function on cell base? Yes, I think for this you should use the values 0 and 1 for these cells, and use other values for the rest. 8 hours ago, snow said: The problem with rewriting the renderer function for a column is that my FixedRow gets painted like a normal cell. Could you please explain in more detail? 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.