cancel
Showing results for 
Search instead for 
Did you mean: 

How to override the default row selection color in a SAP UI5 table

Former Member
0 Kudos

Hi Experts,

I have requirement in our project where I have to override the default row selection color which is coming as blue.

For E.g.

ParamValue
SwitchPass
PressureNo Pass

When an user is selecting any row the default selection color is coming as Deep Blue I want to make it light yellow.I tried using CSS and addsyleclass at the rowselectionchange function but its didn't work.

Is there any  other way accomplish this?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Its done by adding the following code in the CSS file

<style  type="text/css">

.sapUiTableSelModeMulti .sapUiTableCtrl tr.sapUiTableRowSel.sapUiTableRowHvr > td {

    background-color:  rgb( 30 , 125 ,  100) !important;

}

    .sapUiTableRowHvr {

    background-color : rgb( 30 , 125 ,  100) !important;

}

</style>

Anyway Thanks everyone

Answers (0)