Skip to main content

GridPagerPosition Enum

Lists values that specify the pager position in the Grid.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum GridPagerPosition

Members

Name Description
Bottom

The Grid displays the pager at the bottom.

Top

The Grid displays the pager at the top.

TopAndBottom

The Grid displays the pager at the top and at the bottom.

Remarks

The Grid splits a large amount of data rows across multiple pages and displays the pager to enable data navigation. Use the PagerPosition property to specify the pager position in the Grid.

The following example displays the pager both at the top and at the bottom:

@using Microsoft.EntityFrameworkCore
@inject IDbContextFactory<NorthwindContext> NorthwindContextFactory
@implements IDisposable

<DxGrid Data="@Data"
        PagerPosition="GridPagerPosition.TopAndBottom">
    <Columns>
        <DxGridDataColumn FieldName="ShipName" />
        <DxGridDataColumn FieldName="ShipCity" />
        <DxGridDataColumn FieldName="ShipCountry" />
        <DxGridDataColumn FieldName="Freight" />
        <DxGridDataColumn FieldName="OrderDate" />
        <DxGridDataColumn FieldName="ShippedDate" />
    </Columns>
</DxGrid>

@code {
    object Data { get; set; }
    NorthwindContext Northwind { get; set; }

    protected override void OnInitialized() {
        Northwind = NorthwindContextFactory.CreateDbContext();
        Data = Northwind.Orders.ToList();
    }

    public void Dispose() {
        Northwind?.Dispose();
    }
}

Blazor Grid Pager Position Top and Bottom

Run Demo: Data Grid - Paging

See Also