title: How to add a row style dynamically ? - Ag-grid
body: <p>I want to change the style of a row dynamically in ag-grid. What I'm trying to achieve is to change the background color of my ag-grid row if the row has been edited by the user.</p>
  
  <pre><code>cellValueChanged(event) {
    //Add it only if the old value has changed
    if (event.oldValue != event.newValue) {
       // This will replace with latest edited value if it has been edited already
       this.edittedRows[event.rowIndex.toString()] = event.data;
    }
  }
  </code></pre>
  
  <p>I'm keeping track of the edited row by listening to <code>cellValueChanged</code> event. I need to change the row style here.<br/><br/>
  I've looked into ag-grid documentation and found how to add row styles, row classes and row class rules but I could't find a way to add a style to a row dynamically when the user has changed something on it.</p>