menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Pager - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Pager

    A Paging helper that can be wired with GridGroupingControl to enable data paging with IEnumerable type(DataTable) data source.

    Inheritance
    System.Object
    Pager
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class Pager
    Remarks

    Pager can only support the flat datasource. It will not support the Nested table datasource.

    Examples

    This example shows how to use the Pager in GridGroupingControl.

    Pager pager = new Pager();
    pager.PageSize = 1000;
    pager.Wire(this.gridGroupingControl1);
    Dim pager As Pager = New Pager
    pager.PageSize = 1000
    pager.Wire(Me.gridGroupingControl1)

    Constructors

    Pager()

    Declaration
    public Pager()

    Properties

    PageSize

    Gets or sets the page size(record count to display in each page).

    Declaration
    public int PageSize { get; set; }
    Property Value
    Type Description
    System.Int32

    An integer value.

    Remarks

    1000, by default.

    Methods

    ApplyPaging(String)

    Applys the paging after the records has been filtered.

    Declaration
    protected virtual void ApplyPaging(string filterExpression)
    Parameters
    Type Name Description
    System.String filterExpression

    GetFilterExpression(DataView)

    Gets the filter Expression for selected item.

    Declaration
    protected virtual string GetFilterExpression(DataView dataViewNew)
    Parameters
    Type Name Description
    System.Data.DataView dataViewNew
    Returns
    Type Description
    System.String

    return the filter expression

    Unwire(GridGroupingControl)

    Unhook the GridGroupingControl from the paging.

    Declaration
    public void Unwire(GridGroupingControl groupingGrid)
    Parameters
    Type Name Description
    GridGroupingControl groupingGrid

    The GridGroupingControl to perform paging.

    Wire(GridGroupingControl)

    Wires the paging helper with GridGroupingControl.

    Declaration
    public void Wire(GridGroupingControl groupingGrid)
    Parameters
    Type Name Description
    GridGroupingControl groupingGrid

    The GridGroupingControl to perform paging.

    Wire(GridGroupingControl, DataTable)

    Wires the paging helper with GridGroupingControl.

    Declaration
    public void Wire(GridGroupingControl groupingGrid, DataTable table)
    Parameters
    Type Name Description
    GridGroupingControl groupingGrid

    The GridGroupingControl to perform paging.

    System.Data.DataTable table

    The data source in DataTable.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved