IBdataset next 20 records

Hi all. My Isapi dll returns records selected with an
IBdataset.selectsql to display in a Datasettableproducer grid in a
browser. What is the best strategy to keep track of and display the next
20, and so on? I close the IBdataset after input to the tableproducer.