[Q] Add row with color
See original GitHub issue💬 Questions and Help
Is it possible to add a row with a color? For example, I have a few columns and one of them is percentage
. I wanted to add that but with a background color based on the percentage… bellow 50%
would be red and above would be green.
I can’t find in the docs something that helps with that. In resume, I need to change the individual color of a cell when adding a row.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Color Alternate Rows or Columns in a Table – Q Help
1. Select your table. 2. In the toolbar go to Automate > Browse Online Library > Modify Cell Content > Shade Alternate Rows...
Read more >python - QTableWidget - Change the row color - Stack Overflow
It's working, but set background for the row with iterating needs more time if you have more then one table. I need a...
Read more >Excel: Change the row color based on cell value - Ablebits
Learn how to quickly change the color of the entire row based on a single cell's value in Excel 2016, 2013 and 2010....
Read more >Is there any way to make a row a different color background (Q ...
I have changed your post to an Idea thread to add the ability to change the background color of the register. Be sure...
Read more >How to Alternate Row Colors in a Table with CSS
This trick uses CSS to color rows based on what number row they are, or even if they are even or odd. As...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zefexdeveloper yes, it returns the added row. addRows does not return anything (and calls addRow in a loop). So, efficiency wise, if you are already running a loop, best would be to, add a row, store returned row reference, and update by getting getCell(col), and set fill property.
@Subhajitdas298 Does addRow returns the current added row? If yes then it’s the best way for sure. I will try it out.