ComponentOne Pager for ASP.NET Web Forms
Task-Based Help / Changing the Pager Mode
In This Topic
    Changing the Pager Mode
    In This Topic

    You can change the type of pager mode that is displayed by setting the Mode property to NextPrevious, NextPreviousFirstLast, Numeric, or NumericFirstLast. For an overview of these different property settings, see Pager Modes.

    In Design View

    Select the C1Pager control and then, navigate to the Properties window, and set the Mode property to NextPrevious, NextPreviousFirstLast, Numeric, or NumericFirstLast.

    In Source View

    In Source view, add Mode="NextPrevious", Mode="NextPreviousFirstLast", Mode="Numeric", or Mode="NumericFirstLast" to the <cc1:C1Pager> tag.

    In Code View

    The following code snippets illustrate how to set the Mode property in code:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    'Next and Previous buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NextPrevious
    
    'Next, Previous, First, and Last Buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NextPreviousFirstLast
    
    'Numeric buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.Numeric
    
    'Numeric buttons with First and Last buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NumericFirstLast                                
                            
    

    To write code in C#

    C#
    Copy Code
    //Next and Previous buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NextPrevious;
    
    //Next, Previous, First, and Last Buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NextPreviousFirstLast;
    
    //Numeric buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.Numeric;
     
    //Numeric buttons with First and Last buttons
    C1Pager1.Mode = C1.Web.Wijmo.Controls.C1Pager.PagerMode.NumericFirstLast;                               
                            
    
    See Also