DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### clearAll(header)

Required library edition:
Required library file: dhtmlxgrid.js

deletes all rows in grid

- header - (boolean) enable/disable cleaning header

Function which only refreshes grid:

       //delete all rows from the grid
       mygrid.clearAll();
       //delete all rows from the grid, clear header
       grid.clearAll(true);

See also: clearAndLoad, updateFromXML