Hi Bavithraa, did you already try the State Based formatting for this, with that you can apply different styles based on certain rules. Please check this documentation for more detail : Style and Sate Definitions
Hope this helps.
In the Grid->top-left->Drop down -> click on configure Grid column.
For each column you can go to Column Renderer & State Formatting tab and change the the format to State-based Formatting.
Set the dependent field and setup the Style. Here you can define the cases to set the style for various data case.
Do let us know if you face any issue.
I hope it helps.