We are using the DataSource's OnPerformSelect event to run code that populates a TypeView using the PerformSelectEventArgs2 to determine/set the sorting, page, and page size when fetching the data. The TypedView is then bound using using DataBind(). The OnPerformGetDbCount event is used to execute a GetDBCount method in the code behind to determine the total number of records which is used to update the PerformGetDbCountEventArg2.DbCount value.
Since the DataSource's EnablePaging property is set to 'True' the page numbers/links are displayed and used to handle the paging by the user.