This is a basic example of the datagrid using AJAX calling ex1.php
Notice how when you order by a column you don't reload the whole page? Only the datagrid will change. The page persists along with any data. Fill in the txt box, it will stay the same: