Set Pagination Size Programmatically

This customization shows how to set the page size programmatically in a show table page.
Table Control Class
Select the table control where this customization will be included
Applies to
TableControl class
''' Handle the MyControl_Init method and set the pagination size programmatically.
Protected Sub MyControl_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Init  
	If Not Me.Page.IsPostBack() Then
        ' Set the new pagination size for the table 
        Me.PageSize = 20        
    End If            
End Sub

Terms of Service Privacy Statement