DHTML JavaScript Grid samples

Add/Delete Rows in Grid

You can add rows to the javascript grid any time by using API methods. You can specify the position the row should appear.
Delete row is easy as well

  • Add Row to the second position
  • Delete Row by index

  • <div id="gridbox" width="100%" height="250px" style="background-color:white;overflow:hidden"></div> <script> mygrid = new dhtmlXGridObject('gridbox'); ... mygrid.addRow(123,"text1,text2",1); mygrid.deleteRow(mygrid.getRowId(0)); </script>

    Go to the dhtmlxGrid main page or Close this page