ComponentOne Gallery for ASP.NET Web Forms
Task-Based Help / Adding a Pager to the Gallery
In This Topic
    Adding a Pager to the Gallery
    In This Topic

    The C1Gallery control includes various navigation options, one way you can make it easier for users to navigate through Gallery items is by adding a pager to the Gallery. When the ShowPager property is set to True a pager appear below the gallery allowing users to navigate through all items in the gallery. In the examples below you'll add a numeric pager.

    In Source View

    In Source view add ShowPager="True" to the <cc1:C1Gallery> tag so it appears similar to the following:

    <cc1:C1Gallery ID="C1Gallery1" runat="server" ShowPager="True">
    
    At Design Time

    In Design view, select the C1Gallery control and in the Properties window set the ShowPager property to True.

    In Code

    Add the following code to the Page_Load event to add a pager to the Gallery:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1Gallery1.ShowPager = True                                            
    

    To write code in C#

    C#
    Copy Code
    this.C1Gallery1.ShowPager = true;
    
    See Also