Skip to main content
A newer version of this page is available. .

DxGrid.ShowAllRows Property

Specifies whether the Grid displays all rows on one page.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(false)]
[Parameter]
public bool ShowAllRows { get; set; }

Property Value

Type Default Description
Boolean false

true to display all rows on one page; otherwise, false.

Remarks

Enable the ShowAllRows option to display all Grid rows on one page. Note that if the Grid contains a large amount of data rows, this option can affect the Grid’s performance.

In this mode, the Grid ignores the PageSize value and hides the pager if it does not contain the page size selector with the All item.

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

<DxGrid Data="@Data"
        ShowAllRows="true">
    <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.Take(20).ToList();
    }

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

Blazor Grid All Rows on One Page

Implements

See Also