How display 100 last rows in table

I want to display the last 100 rows in a table, which takes data from an xml file, but I do not know how to do it.


<div id="gridbox" style="width:503px;height:120px;background-color:white;"></div>
<script>

mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setHeader("Name,Date of Birth, First Book Published");
mygrid.setInitWidths("*,100,100");
mygrid.setColAlign("left,center,center");
mygrid.setColTypes("ed,dhxCalendar,dhxCalendarA");
mygrid.setColSorting("str,date,date");
mygrid.setSkin("dhx_skyblue");
mygrid.init();
mygrid.loadXML("../common/xml/gridData.xml");

</script>

Someone can help me?

It may have sense to try to use paging mode of the grid.
http://www.dhtmlx.com/docs/products/dhtmlxGrid/samples/14_loading_big_datasets/05_pro_paging.html