Change grid selection color?


#1

There’s gotta be a way to change the selection color, but I can’t find it.  The theme class appears to have a way to retrieve the selection color but not change it.  And I can’t find a way to change the selection color on the grid itself without using the theme stuff.

Any pointers?


#2

Hi ericsink,

You should be able to change the selection color of a ShinobiGrid with the following:

grid.defaultSelectedCellStyle.backgroundColor = //your color

The ShinobiDataGrid API is slightly different:

grid.defaultCellStyleForSelectedRows.backgroundColor = //your color

I hope the above info helps! :grin: