question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Subhajitdas298commented, Jul 9, 2020

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

2reactions
theprobugmakercommented, Jul 9, 2020

@Subhajitdas298 Does addRow returns the current added row? If yes then it’s the best way for sure. I will try it out.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found