diff --git a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
index 295caf4..24e2697 100644
--- a/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/templates/sqleditor/js/sqleditor.js
@@ -1816,6 +1816,9 @@ define(
             }
             else {
               self.collection.add(empty_model);
+              // scroll to new added row
+              var dgrid = document.getElementById("datagrid");
+              dgrid.scrollTop = dgrid.scrollHeight;

               /* If no of items on the page exceeds the page size limit then
                * advanced to the next page.
@@ -2319,6 +2322,9 @@ define(
             }
             else {
               self._paste_row();
+              // scroll to new added row
+              var dgrid = document.getElementById("datagrid");
+              dgrid.scrollTop = dgrid.scrollHeight;

               /* If no of items on the page exceeds the page size limit then
                * advanced to the next page.
