This is just a guess as I haven't done it in a little while....
You could look at the entity.grid.xml.config file & copy the same paging logic.
Code:
<xsl:value-of select="aspdnsf:PagingControl($BaseURL, $CurrentPage, /root/Products2/Product/pages)" disable-output-escaping="yes" />
Then you will need the parameters that are declared in the top of the xml file...
Code:
<xsl:param name="BaseURL">
<xsl:value-of select="aspdnsf:EntityLink(/root/Runtime/EntityID, $CurrentEntity/SEName, /root/Runtime/EntityName, 0)" />
</xsl:param>
<xsl:param name="CurrentPage">
<xsl:choose>
<xsl:when test="/root/QueryString/pagenum"><xsl:value-of select="/root/QueryString/pagenum" /></xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:param>
You might need to change some of the above code & some parts might be missing, but it should get you started.
Let me know if you need any more help with that.