<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxgrid.js"></script>
<script src="../../codebase/ext/dhtmlxgrid_drag.js"></script>
<script src="../../codebase/dhtmlxgridcell.js"></script>
<div id="gridbox" style="width:600px; height: 270px; background-color:white;"></div>
<input type='checkbox' checked="checked" onclick='mygrid.enableMercyDrag(this.checked)' /> Allow mercy drag-and-drop
<script>var mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping,Bestseller,Date of Publication");
mygrid.setInitWidths("50,150,100,80,80,80,80,200");
mygrid.setColAlign("right,left,left,right,center,left,center,center");
mygrid.setColTypes("dyn,ed,ed,price,ch,co,ra,ro");
mygrid.setColSorting("int,str,str,int,str,str,str,date");
mygrid.enableMercyDrag(true);
mygrid.init();
mygrid.setSkin("dhx_skyblue");
mygrid.enableDragAndDrop(true);
mygrid.loadXML("../common/grid.xml");
</script>