Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Change styling of crosstab row on click of a button

Hi All,

Initial problem : I have a cross-tab with several rows and columns. Users want the ability to select a row and click a button after which the font of the entire selected row should change to a particular color(say red).

Related problem : They may choose to perform the same action at a later point in time but the previously selected row(s) must remain red after the consequent actions. I.e. if row 1 was selected first then it must turn red and remain red when say row 2 is selected.

To solve the "related problem", I guess i could provide a check box and ask users to select all the rows that they want and then click on the button. But i am really stuck with the "initial problem".

This is what i tried:

1. Assigning css class to crosstab using "setcss". But this applies to entire cross tab which is not what i want

2. Overwriting standard sap css classes. Again this affects all parts which are related to the css class and not the row selected by the user.

Links i visited :

Please assist. Thank you.


Palaniappan Ramanathan


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question