Hi @Prajakta Roshankhede,
I think the component have a simpler solution for that. In each column you have the possibility to add a list of conditional format rules, this allows you to add a cellClass or a rowClass everytime the rule is true.
Let me know if this solves your use case,
Best Regards,
João Ferreira