Skip to content

DataGrid<T>

daisyUI replacement for MudDataGrid<T>. Renders a .table with a sortable header and a paged body. Supports client-side paging/sort over DataGrid<T>.Items or server-side data via DataGrid<T>.ServerData / DataGrid<T>.ServerDataFunc.

  • T — Row item type.

Render outer/inner borders.

Alternative slot for column declarations.

CSS class applied to the table wrapper.

Column declarations.

Compact row styling.

Effective rows per page.

Elevation (accepted for MudBlazor parity; mapped to a shadow class).

Index of the first row shown on the current page (1-based; 0 when empty).

Highlight rows on hover.

True when bound to a server-data source.

Local item source. Mutually exclusive with the server-data callbacks.

Index of the last row shown on the current page.

Loading state (shows DataGrid<T>.LoadingContent when set, else skeleton rows).

Content shown while DataGrid<T>.Loading is true.

Content shown when there are no rows.

Current zero-based page index.

Total number of pages.

Pager content (typically a DataGridPager<T>).

Alias for DataGrid<T>.RowsPerPage.

Page-size options offered by the pager.

Read-only flag (accepted for MudBlazor parity; no effect on rendering).

Raised when a row is clicked.

Rows per page. DataGrid<T>.PageSize is an alias.

Inline style applied to each body row (e.g. “cursor: pointer;”).

Server-data loader (with cancellation). Mirrors the wrapper’s signature.

Server-data loader (no cancellation token).

Number of skeleton rows rendered while loading without a DataGrid<T>.LoadingContent.

Active sort definitions keyed by column identifier (mirrors MudBlazor).

Zebra striping.

Inline style applied to the table wrapper.

Total number of rows across all pages.

Registers a column (called by child columns on init).

Forces a reload from the server-data source (no-op for client-side data).

Sets the current page and refreshes the body.

Changes the page size, resets to the first page, and refreshes.

Lets a child pager supply the page-size options without externally setting the parameter.