title: How to add a new row and refresh my current page in Ag Grid?
body: <p>I'm using react and Ag Grid and I'm trying to add a new "row" in my remote grid with the focus and the edit, in that way:</p>
  
  <pre><code>const newRow = {
        COD_CON: 'new',
        COD_ABC: '000',
      }
  
  gridApi.updateRowData({ add: newRow, addIndex: 1 })
  
  gridApi.setFocusedCell(1, DEFAULT_KEY_COLUMN)
  gridApi.startEditingCell({
    rowIndex: 1,
    colKey: DEFAULT_KEY_COLUMN,
  })
  </code></pre>
  
  <p>but I receive the error:</p>
  
  <pre><code>ag-Grid: updateRowData() only works with InMemoryRowModel and InfiniteRowModel.
  </code></pre>
  
  <p>So I thought that a possible solution could be, adding the new empty row with a POST like this: </p>
  
  <pre><code>const newRow = {
    COD_CON: 'new',
    COD_ABC: '000',
  }
  const add = await fetch(`${my}/${url}`, {
    method: 'POST',
    body: JSON.stringify(newRow),
    headers: {
      'Content-Type': 'application/json',
    },
    credentials: 'include',
  })
  </code></pre>
  
  <p>after the data is refreshed the new row is added at the end of my grid and I would like to reach that row with focus and the edit as I can do it in local with <code>gridApi.setFocusedCell(...)</code> and <code>gridApi.startEditingCell({...})</code>.
  How can I do this?</p>
  
  <p>Thanks</p>
  
  <p>EDIT 1:
  With @JulienD's comment I understood that my question was not clear and I changed it. Thanks</p>