cancel
Showing results for 
Search instead for 
Did you mean: 

Zebro row affect for cTable

kmoore007
Active Contributor
0 Kudos

Anyone know how to add the "zebra" affect to a cTable element like you can do with the ALV table (alternate row shading)?

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

There is no provision to automatically have an Alternate shading for CTable like in Table UI. You have to individually bind the 'celldesign' property of each CTable Column and then loop the table data and assign the color to alternate rows to each CTable Column.

Hope this helps u,

Regards,

Kiran

kmoore007
Active Contributor
0 Kudos

Sad, but true.  Why SAP?  Why? 

former_member184578
Active Contributor
0 Kudos

Haha Ya. But, it's due to the fact that Client Table is not just another Table UI but you can create different cell editors ( cell variants) and it's complex for the framework to apply design for all the columns.

So, while designing we have to choose which columns we have to apply cell design.

Cheers,

Kiran

Answers (1)

Answers (1)

0 Kudos

Hi ,

Please follow the below step to achive the  'ZEBRA' affect.

1. Change the ‘Design’ property of Table to ‘Alternating’

2. Mark the table as ‘Read-only’

Thanks