Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
change row color while table is drawing
sa_keles
hi all,
i am trying to show datas in a colorful table. is there any way to change row color while table is drawing? i can change row color by hand but i want to do it as script
thanks in advance.
Find more posts tagged with
Comments
mwilliams
Hi sa_keles,
Yes, you can change the background color in script. Do you have a criteria for what color the rows will be?
sa_keles
hi mwilliams,
thanks for your reply (i am sorry for delay). there is no criteria, for example one row will be red and the next one will be white and it will be repeated till end of the table (r-w-r-w ....)
mwilliams
sa_keles,
You can do that by creating a highlight rule on your detail row.
* Select the detail row
* Go to the "Highlights" section of the property editor
* Choose Add
* Enter the condition: row.__rownum%2 Equal to 0
* Choose a background color
* OK
Let me know if this doesn't work for you.
sa_keles
hi mwilliams,
the logic you sent works for me , thanks but i have additional questions
1st i have a table control and i added some extra rows in header and footer sections. header section does not make any problem but in footer section the initial row color will be depend on last row color in detail section. for example if we use red and white colors, when detail row count is 3 last detail row color will be red and footer section color should start with white, when count is 4 last row will be white and footer section should start with red is there any solution for this kind of problem?
2nd. can i implement this solution to grid control? (grid control does not have detail section or i could not find)
thanks, have a good day