score:2

not sure if you find an answer already, but like pavan mentioned in the comment - you can checkout the gridapi.redrawrows() function described in the ag-grid doc in this link https://www.ag-grid.com/javascript-grid-refresh/#redraw-rows.

to achieve your goal here, you need to call this function after you set your highlightrowdata state. as you are using hook it may look like this:

  useeffect(() => {
    // assume you have a gridapi reference here. if not yet, maybe you can hold it in a ref by useref
    gridapi.redrawrows();
  }, [highlightrowdata]);

Related Query

More Query from same tag