How to change the color of selected row in ag grid?

Joseph Nannepaga picture Joseph Nannepaga · Mar 8, 2019 · Viewed 7.8k times · Source

I need to change the selection color from blue(default color) to red bordered blue color in ag-grid.enter image description here

Refer the pic the blue color should be converted to thick blue with red border

Answer

Ghanima picture Ghanima · Mar 9, 2019

Add the following to your css

.ag-theme-balham .ag-row-selected {
    background-color: #4abbff;
}

.ag-theme-balham .ag-ltr .ag-cell-focus {
    border: 1px solid red;
}