<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/dhtmlxgridcell.js"></script>
<table><tr><td>
<input type="text" id="elem1" value="start" size="20"> </td></tr>
<tr><td><div id="gridbox" style="width:400px; height:270px; background-color:white;"></div></td></tr>
<tr><td><input type="text" id="elem2" value="end" size="20"> </td></tr>
<tr><td>
<a href="javascript:void(0)" onClick="mygrid.enableEditTabOnly(true);">enable</a> | <a href="javascript:void(0)" onClick="mygrid.enableEditTabOnly(false);">disable</a> EditTabOnly
</td></tr>
</table>
<script>mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setHeader("Column A, Column B, column c");
mygrid.setInitWidths("100,150,*");
mygrid.setColAlign("right,left,left,left");
mygrid.setColTypes("ro,ed,ed");
mygrid.setColSorting("int,str,str");
mygrid.enableMultiselect(true);
mygrid.enableEditTabOnly(1);
mygrid.setExternalTabOrder("elem1", "elem2");
mygrid.init();
mygrid.setSkin("dhx_skyblue");
mygrid.loadXML("../common/grid.xml");
</script>