Can you try calling this function after user finishes entering data?
const removePinnedTopRow = (api) => { api.setGridOption("pinnedTopRowData", []); api.refreshCells({ force: true }); };