gustavnavar / Grid.Blazor

Grid component with CRUD for Blazor (client-side and server-side) and ASP.NET Core MVC
GNU Lesser General Public License v2.1
696 stars 134 forks source link

Change cell background color depending on value. #403

Closed jcvw75 closed 9 months ago

jcvw75 commented 9 months ago

So far I tried SetCellCssClassesContraint but the css classes I create can only be used for the text color.

I want to be able to change the background color but when i use the background-color: red it doesn't work .addPayHold { background-color: red; color: blue; }

Only foreground text color is changed but no change in background in the cell. What is the right way to do this ?

gustavnavar commented 9 months ago

Your cant try with the following:

.addPayHold {
    background-color: red !important;
    color: blue;
}
jcvw75 commented 9 months ago

Thanks! It worked!