diff --git a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Pagination/PaginationState.cs b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Pagination/PaginationState.cs
index 2da161a7af9a..f2406da16f87 100644
--- a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Pagination/PaginationState.cs
+++ b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Pagination/PaginationState.cs
@@ -10,6 +10,11 @@ namespace Microsoft.AspNetCore.Components.QuickGrid;
///
public class PaginationState
{
+ ///
+ /// Whether or not to render empty rows to fill the view.
+ ///
+ public bool RenderFillerRows = true;
+
///
/// Gets or sets the number of items on each page.
///
diff --git a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor
index 5228ed1d2b00..134583659d4a 100644
--- a/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor
+++ b/src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor
@@ -48,8 +48,7 @@
// When pagination is enabled, by default ensure we render the exact number of expected rows per page,
// even if there aren't enough data items. This avoids the layout jumping on the last page.
- // Consider making this optional.
- if (Pagination is not null)
+ if (Pagination is not null && Pagination.RenderFillerRows)
{
while (rowIndex++ < initialRowIndex + Pagination.ItemsPerPage)
{