SubGrid

The SubGrid component displays Dataverse records related to a parent record via a specified relationship. It must be placed inside a RecordContext and requires a RelationshipName parameter that specifies which relationship to use.

Relationship Types

SubGrid supports both one-to-many (1:N) and many-to-many (N:N) relationships. The component automatically detects the relationship type and adjusts its behavior accordingly.

  • For 1:N relationships, the grid displays records from the related table that reference the parent record. Toolbar buttons like NewRecordGridButton, OpenRecordGridButton, and DeleteRecordGridButton are used to create, edit, and delete related records.
  • For N:N relationships, the grid displays associated records. Toolbar buttons like LinkExistingRecordGridButton and UnlinkExistingRecordGridButton are used to associate and disassociate records. Create and delete operations are automatically converted to associate and disassociate requests.
  • For an N:N relationship between a table and itself — accounts related to other accounts — set SelfReferencingRole to say which side the parent record is on: EntityRole.Referencing for the relationship's first side, EntityRole.Referenced for its second. The grid needs it to find the related records, and its link and unlink buttons pass it on with the records they associate. ManyToManyLookupEdit and GridRelatedRecordsColumn take the same parameter.

Views

Use ViewIds to specify which views are available in the view selector dropdown, and DefaultViewId to set the initially selected view. If neither is provided, the grid automatically loads all public views for the related table. You can also provide CustomViewDefinitions with inline FetchXML to define views directly in code.

React Blazor

Toolbar Buttons

Add buttons to the grid toolbar using the Buttons render fragment. See the Grid Buttons documentation for detailed configuration options including dialog positioning, wizard forms, and save behavior. The following built-in buttons are available:

  • NewRecordGridButton — Opens a dialog form to create a new related record (1:N)
  • OpenRecordGridButton — Opens a dialog form to edit the selected record
  • DeleteRecordGridButton — Deletes selected records
  • LinkExistingRecordGridButton — Associates an existing record via a N:N relationship
  • UnlinkExistingRecordGridButton — Disassociates selected records from a N:N relationship
  • NavigateNewRecordGridButton — Navigates to a URL to create a new record
  • NavigateOpenRecordGridButton — Navigates to a URL to edit the selected record
  • ExportGridButton — Downloads the grid's records as an Excel workbook or a CSV file
React Blazor

Inline Editing

Set AllowEdit="true" to enable a settings toggle that lets users switch to inline editing mode. When enabled, editable columns render as form controls directly in the grid. Inline editing is only supported for 1:N relationships.

React Blazor

The grid supports paged navigation with configurable page sizes via DefaultItemsPerPage and PageSizes. Search is enabled by default and can be disabled with AllowSearch="false".

React Blazor

SubGrid (One to Many Relationship)

The following example shows a SubGrid displaying contacts related to an account via the contact_customer_accounts relationship. It includes buttons for creating, editing, and deleting contacts.

React example Blazor example React TypeScript Razor AccountAndContactCustomViews.cs
Are you sure you'd like to delete the 0 record/s?
Cancel Delete
All ContactsMy Contacts
New
Sort
All ContactsMy Contacts
New
Page size 102050100
Sort
Full Name
Full Name
Combines and shows the contact's first and last names so that the full name can be displayed in views and reports.
Mobile Phone
Mobile Phone
Type the mobile phone number for the contact.
Email
Email
Type the primary email address for the contact.
Company Name
Company Name
Select the parent account or parent contact for the contact to provide a quick link to additional details, such as financial information, activities, and opportunities.
Age
Age
Birthday
Birthday
Enter the contact's birthday for use in customer gift programs or other communications.
Bradford Kiehn(878) 546-1743Bradford.Kiehn13@yahoo.comAbernathy - MacGyver6312/20/1963
Jaydon Baumbach(091) 769-5345Jaydon.Baumbach5@gmail.comAbernathy - MacGyver5712/3/1969
Karlee Kuphal(651) 890-0779Karlee11@yahoo.comAbernathy - MacGyver235/11/2003
Keshawn Lubowitz(405) 079-0110Keshawn_Lubowitz@yahoo.comAbernathy - MacGyver2510/29/2001
Salma Yost(175) 474-8388Salma_Yost@yahoo.comAbernathy - MacGyver285/3/1998

SubGrid (Many to Many Relationship)

The following example shows a SubGrid displaying regions associated with an account via the ppp_Account_ppp_Region_ppp_Region many-to-many relationship.

React example Blazor example React TypeScript Razor
Are you sure you'd like to unlink the 0 record/s?
Unlink Cancel
Active RegionsInactive Regions
Link Existing
Sort
Active RegionsInactive Regions
Link Existing
Page size 102050100
Sort
Name
Name
No records found.
React Blazor

SubGrid Class

Parameters

Name
Type
Default
Description
AllowAddingColumnsbool
False
Gives the grid a Columns button, which lets the user add columns they may read to the view shown — from the grid's table, and from the tables its lookups lead to, and theirs, up to five tables deep, so no record is shown twice — and hide and show the view's own. The added columns last while the grid shows the view; a view saved with FluentGridBase.AllowSavedViews keeps them. Not offered on a grid bound to a GridBase.DataSource, whose query is the data source's. Off by default.
AllowChangingLayoutbool
False
When true, the toolbar has a layout dropdown: automatic, table rows or cards. The layout the user picks is kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Defaults to false.
AllowChangingPageSizebool
True
When true, the user can change the number of items displayed per page.
AllowDownloadForFileColumnsbool
True
When true (the default), the grid renders a per-row download icon at the trailing edge of file and image column cells. Clicking it streams the file to the user's browser. Set to false to suppress the icon — for example on read-only audit grids where file export isn't allowed.
AllowEditbool
False
Should the option be available for the user to turn on inline editing for the grid.
AllowFilteringbool
False
When true, the toolbar has a Filter button, which opens the view's filters to change: conditions on its columns, nested in groups, and related tables to filter by — every filter FetchXML can express, over the columns and tables the user may read. The changes last while the grid shows the view; another view starts from its own filters. Not offered on a grid bound to a GridBase.DataSource, whose query is the data source's. Defaults to false: the user can take away every filter the view has, which a view meant to narrow a page's records may not want.
AllowGroupingbool
False
When true, a strip above the column headers lets the user group the rows: they drag a column's header onto it, and the strip then shows the grouping, to turn its order around, pick a date column's span or the range of a number each group covers, or take it away. Only the columns a grid can be grouped by can be dragged; their menus offer grouping by them too. The user's grouping is kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Without it, a grouping the page sets (GridBase.GroupBy, GridBase.GroupLevels) is not the user's to change. Defaults to false.
AllowNavigateOnPrimaryNameClickbool
True
When true (the default) and the grid has a registered 'edit' button (a GridButton with IsOpenRecordButton=true), the cell that renders the table's primary-name column becomes a hyperlink. Clicking it dispatches the same per-row invocation that a row double-click would — so a user can jump to the edit form (or the navigated edit URL, depending on the registered button) without first selecting the row. Set to false to suppress the hyperlink and render the primary-name cell as plain text. Has no effect when no edit button is registered.
AllowNavigateOnRowDoubleClickbool
True
When true (the default) and the grid has a registered 'edit' button (a GridButton with IsOpenRecordButton=true), double-clicking a row invokes that button's OnClick for the row's record — opening the edit dialog or navigating to the edit URL, whichever the button does. Set to false to suppress the double-click handler. Has no effect when no edit button is registered.
AllowNearSearchbool
False
A Near button on the toolbar: only the records within a distance of a place — an address found with the map provider's search, or the visitor's location — nearest first, with a Distance column the cards show too, and the circle drawn on the map layouts. A column's sort orders them instead. It reads the coordinates in FluentGridBase.MapLatitudeColumn and FluentGridBase.MapLongitudeColumn, needs the Maps package (AddPowerPortalsProWebBlazorMaps), and isn't offered on a grid bound to a shared DataSource. The place is kept in the URL with the rest of the grid's state. Off by default.
AllowPreviewForFileColumnsbool
True
When true (the default), the grid renders a per-row 'eye' preview icon at the trailing edge of file and image column cells whose contents can be rendered inline (images, PDFs, plain text). Set to false to suppress the icon — for example on grids where the columns shouldn't double as a preview entry point.
AllowSavedViewsbool
False
Lets signed-in users save the grid as they've arranged it — its filters, columns, sort, grouping, totals, layout and page size — as views of their own, offered in the view picker beside the grid's views, and choose their default view and hide the views they don't use. Off by default. Needs the Power Portals Pro Core solution's saved-view tables; an internal user also needs the Power Portals Pro Saved Views security role.
AllowSearchbool
True
Should the user be allowed to search the grid.
BorderVisiblebool
True
Controls whether a visible border is rendered around the grid.
CardFileColumnstring?
A file column that makes each default card a file tile: the file's type icon, large — or, for an image, a thumbnail of it — above its name, with buttons that preview and download it (see FluentGridBase.AllowPreviewForFileColumns and FluentGridBase.AllowDownloadForFileColumns), and the grid's other columns beneath. A Components.FileGrid sets it to the column it manages.
CardImageColumnstring?
An image column each card shows as an avatar beside its title: a contact's photo, an account's logo ('entityimage', or one of the table's own image columns). A record with no image, or whose image the user may not read, shows the initials of its name in a color the name picks.
CardImageSizeAvatarSize
Size40
The size of the avatar FluentGridBase.CardImageColumn shows. Defaults to 40 pixels.
CardTemplateRenderFragment<GridCardContext>?
The content of each card in GridLayout.Cards, in place of the card the grid builds from its columns. The grid still draws the card itself — its border, the selection checkbox and selected state, the mark of a pending change — around this content.
ColumnAggregatesIReadOnlyList<ColumnAggregateInfo>?
Figures for the grid's footer, by column: a total, average, minimum, maximum or count shown under the column, worked out over every record the grid matches — its view, filters and search — rather than the page on screen, each in a format of its own. For a grid showing a view's columns; a declared GridColumn can say the same with its own Aggregates, and a column named in both shows both sets, the declared column's format winning for a figure both give. Number and money columns take every figure, date columns the earliest, latest and count, and the rest a count. A footer row appears once any column shown has a figure. A format is a .NET number format — N0 for no decimals, N1 for one, C0, P1, #,##0.0 — applied in the user's culture; it shapes a total, average, minimum or maximum, while a count and a date keep their own format, and money keeps the base currency's symbol. A figure without one is formatted as the column's cells are.
ColumnMenuItemsGridColumnMenuItems
All
What a column header's menu offers besides sorting: filtering the rows by the column, grouping them by it, the totals under it, hiding and moving columns, and pinning them. All of them by default; the user's choices but their filters are kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Filtering is offered with FluentGridBase.AllowFiltering, on the columns the user may read; grouping with GridBase.AllowGrouping, on the columns rows can be grouped by; neither on a grid bound to a GridBase.DataSource; totals on the columns that take a figure.
ColumnsRenderFragment?
Optional Components.GridColumns fragment carrying consumer-declared Components.GridColumn children. When supplied, the grid switches to replace mode: only the declared columns render (in declared order), the FetchXML projection is rewritten to match, and the underlying view's column list is ignored. null leaves the grid in its default behavior (auto-generate columns from the view's resolved column set).
CustomViewDefinitionsList<ViewDefinition>?
Custom views to display in the dropdown.
DataSourceViewDataSource?
Optional shared Data.ViewDataSource. When set, the grid reads its rows + total count from the datasource instead of issuing its own Threading.CancellationToken) call — the same datasource can drive a sibling <DataverseChart> or a second grid so they all paginate / filter / search together off one round-trip. Standalone usage (no GridBase.DataSource) keeps the existing internal-state machine — the grid composes FetchXML and fetches via IPowerPortalsProService directly. What the datasource does NOT own: per-grid UI state (selected rows, pending row creates / updates / deletes, column widths). Those stay grid-local — two grids sharing one datasource can still have independent selection and per-grid pending edits. When ViewDataSource.Highlight is set (e.g. via a chart slice click in cross-filter 'highlight' mode), rows whose value in the highlighted column doesn't match are visually muted via a CSS class; the row data + selection are unaffected (the soft cross-filter is purely styling).
DefaultItemsPerPageint
50
Default number of records to load on a page.
DefaultViewIdGuid?
Id of the view that the grid should display upon initial load.
Editablebool
False
Is inline editing turned on for the grid.
FiltersIReadOnlyList<QueryFilter>?
Additional server-side filters AND-merged onto the resolved view's FetchXML before paging / sorting / searching kick in. Forwarded to Query.IFetchXmlQueryComposer's FetchXmlQueryOptions.Filters, so each entry is dispatched by runtime type (e.g. Models.RelationshipFilter AND-merges a relationship link-entity). Typical use: the LinkExistingRecordGridButton picker passes a Models.RelationshipFilter with RelationshipFilterMode.ExcludeExistingRecords so already- linked records are hidden from the M2M lookup dialog. Combines additively with SubGrid's own internal relationship filter (which is built into the FetchXML directly rather than going through the composer's Filters slot) — both end up in the same query.
FullSizebool
False
When true, the grid expands to fill all available vertical space instead of using a fixed minimum height.
GroupBystring?
A column of the grid's table to group the rows by: a choice, yes/no, status, lookup (owner and customer among them), single line of text, number (a group for each value) or date column, shown or not. Each group starts with a header row giving its value, how many records it holds and its own footer figures under their columns; it collapses to that row and expands again. The groups cover every record the grid matches, not the page, which can end part way through one. The rows are sorted by the column first, the grid's own sort ordering them within each group. A column with more than QueryGrouping.MaximumGroups values, or one the user may not read, leaves the rows ungrouped, and the grid says so. Cards show a header above each group's cards; a grid bound to a GridBase.DataSource groups the data source. GridBase.GroupLevels groups by more than one column. With GridBase.AllowGrouping, the grouping the grid starts with: the user's own replaces it, and a change here replaces the user's. Bind it (@bind-GroupBy) to follow the user's.
GroupByDateGroupingDateGrouping
Day
The span each group covers when GridBase.GroupBy is a date column — a minute, hour, day, week, month, quarter or year, or a fiscal period or year (QueryGroupBy.DateGroupings), in the user's time zone. A day by default. Minutes and hours in steps of more than one take GridBase.GroupLevels, whose QueryGroupBy.RangeSize sets the step.
GroupByDescendingbool
False
Puts the groups of GridBase.GroupBy in descending order — Z to A, latest first.
GroupLevelsIReadOnlyList<QueryGroupBy>?
The columns the rows are grouped by, outermost first — up to QueryGrouping.MaximumLevels, each grouping the groups of the one before — in place of GridBase.GroupBy, which names one. A date column can only be the innermost. As GridBase.GroupBy does, the grouping the grid starts with when its users may group: bind it (@bind-GroupLevels) to follow theirs.
HidePagingbool
False
Force the page size and paging components to be hidden. Only do this when the number of items is known and the page size is set to something greater than the item count.
IncludeSearchInPersistedStatebool
False
When true, the active search text is included in the persisted state URL parameter (under the q field). Defaults to false — search terms can be sensitive, accumulate in browser history, and leak into HTTP referrers, so the grid keeps them out of the URL unless the consumer explicitly opts in. Has no effect when GridBase.PersistedStateQueryParameter is not set.
InitialSearchTextstring?
The search the grid starts with, as if the user had typed it — the Advanced Search dialog passes on what was typed into its lookup this way. Read once, when the grid initializes; a search restored from the persisted state wins over it. Ignored with a GridBase.DataSource, which owns its search.
IsDirtybool
False
Indicates whether the grid has unsaved create, update, or delete operations pending.
LayoutGridLayout
Table
How the grid lays out its records: as table rows (the default), as cards that wrap to fill the grid's width, or GridLayout.Auto — cards on a narrow viewport, table rows on a wide one. Bind it (@bind-Layout) to follow the user's choice when FluentGridBase.AllowChangingLayout is on.
LoadedRecordsIEnumerable<TableRecord>
Records currently rendered in the grid (the most recent page of results). Intended for toolbar commands that need to act on 'everything shown' — e.g. a bulk download button. Does not span pages; bulk-across-pages operations should run their own unpaged fetch instead.
MapHeightstring?
How tall the map layouts are: the map, and in GridLayout.Map the list of cards beside it, which scrolls. Any CSS length; default 560px. Below the grid's mobile width the Map layout's map is a fixed height above the cards.
MapLatitudeColumnstring
address1_latitude
The column holding each record's latitude in the map layouts. Defaults to address1_latitude, an account's or contact's. The grid fetches the coordinates beside its columns, but a grid bound to a shared DataSource has only those its query reads.
MapLongitudeColumnstring
address1_longitude
The column holding each record's longitude in the map layouts. Defaults to address1_longitude, an account's or contact's.
MapMaximumRowsint
1000
The most records GridLayout.MapOnly loads onto the map. Default 1,000. When more match, the map shows the first of them and says so; a search or filter narrows them down.
MapPageSizeint
250
How many records GridLayout.MapOnly asks for at a time as it loads them all onto the map. Default 250, so a thousand records take four requests; at most 5,000, Dataverse's largest page.
MapPrintListGridMapPrintList
Selected
Which records a printout of GridLayout.Map lists under the map, each with its card's fields: the selected ones (every card, with none selected), those whose pins are in view, every card, or none. Users change it in the Settings menu while the map's Print button shows (FluentGridBase.ShowMapPrintButton). Default GridMapPrintList.Selected.
MapShowsSelectedOnlybool
True
In GridLayout.Map, with records selected on the cards, the map shows only theirs — with none selected, every record's — and a printout lists only them. Users switch it in the Settings menu. GridLayout.MapOnly, whose pins are how records are selected, shows every record either way. Default true.
MaxHeightstring?
Max Height that the grid control should expand to.
MaximumRangedValuesint?
The most rows of values the grid reads to group a number in ranges (QueryGroupBy.RangeSize) — each combination of values, under outer groups — when it should read fewer than the host allows. More values than this and the rows are shown ungrouped, the grid saying there are too many groups. The host's limit (RangeGroupingOptions.MaximumRangedValues, 10,000 unless it sets another) holds a larger one to it; null, the default, uses the host's. A grid bound to a ViewDataSource is grouped by it, so takes the data source's own limit (ViewDataSourceOptions.MaximumRangedValues) in place of this.
MinCardWidthstring?
The narrowest a card may be, as any CSS length ('240px', '18rem', '30%'): as many cards fit on a row as are at least this wide, and they share the row's width equally. A card is never wider than the grid. Unset, it is 320 pixels — 200 for file tiles — or what a --ppp-card-min-width CSS variable around the grid says.
MinHeightstring?
300px
Minimum height that the grid control should occupy.
ModeGridMode
RecordSelection
Sets the behavioral mode of the grid, such as default interaction or record-selection mode.
NearDistancedouble?
The distance the Near button starts at. Default 25.
NearDistancesIReadOnlyList<double>?
The distances the Near button offers. Default 1, 5, 10, 25, 50 and 100.
NearDistanceUnitDistanceUnit
Miles
The unit the Near button starts in. Default miles.
PageSizesIEnumerable<int>
Collection of available page sizes for the grid.
PagingModeGridPagingMode
Paged
Determines whether the grid uses traditional paging or infinite-scroll virtualization.
PersistedStateQueryParameterstring?
Name of the URL query-string parameter to persist the grid's interactive state to. When set, the grid reads this parameter on initial load and seeds the active view, page number, page size, and sort from it; subsequent user actions (view pick, page change, header sort, etc.) write the new state back via Components.NavigationManager's replace-state path. Persistence survives page refresh and bookmarks.
RecordTableRecord?
The parent record supplied via a cascading parameter; related records are filtered by this record's identity.
RelationshipName*string
The schema name of the relationship used to filter and display related records in this sub-grid.
SavedViewsKeystring?
Names this grid among the controls of its table, so the views saved on it and the user's default and hidden views are its own: it offers the views saved on it as well as the views saved on controls with no key, and its default and hidden views are set for it alone. Without one, the grid shares its views with every grid and calendar of its table that has none, and its default and hidden views with every grid that has none. Letters, digits, -, _ and ..
SelectedRecordsIEnumerable<TableRecord>
Records that are currently selected in the Grid.
SelectFromEntireRowbool
True
When true, clicking anywhere on a row selects it; when false, only the checkbox selects the row.
SelectModeDataGridSelectMode
Multiple
Controls whether the grid allows single or multiple row selection.
SelfReferencingRoleEntityRole?
Which side of a self-referencing many-to-many relationship SubGrid.Record is on — EntityRole.Referencing for the relationship's first side, EntityRole.Referenced for its second. Required when the relationship relates a table to itself, where the metadata can't tell the two sides apart; ignored otherwise. The grid's link and unlink buttons pass it on with the records they associate.
ShowMapPinNumbersbool
False
Numbers the records in GridLayout.Map: each card and its pin show the same number — the record's place in the grid's results, counting on from the pages before — so a record seen on the map can be found in the list, and on a printout. A record without coordinates keeps its number and has no pin. Default false.
ShowMapPrintButtonbool
False
A Print button on the toolbar, beside Filter and Refresh, while a map layout shows: it prints the map — with, in GridLayout.Map, the cards beside it listed under it, numbered as their pins — and saves it as an image. Default false.
ShowRecordLinksbool
True
Whether a value links to its record's page, registered with AddRecordPage: a lookup to a record of a table with a page, and — with no open button on the toolbar — the primary name, which a double-click opens too. Default true; a column can say otherwise with its own ShowRecordLinks. A table with no page registered shows no links either way.
SignInUrlstring
Account/Login
Where a user who isn't signed in is sent to sign in, from the saved views' menu, which asks them to first; they come back to this page (ReturnUrl). Relative to the app's base address. Defaults to Account/Login, the framework's own sign-in page.
Titlestring?
Name to display when the view dropdown is not displayed.
ToolbarItemsRenderFragment?
The controls in the grid's toolbar: Components.GridToolbarItems such as the grid buttons (Components.GridButton, Components.NewRecordGridButton<T>, Components.ExportGridButton, …) and Components.GridSplitButton. They appear in the order they are declared, ahead of the search box.
TransformViewAsyncFunc<ViewDefinition, Task<ViewDefinition>>?
Optional callback that runs immediately after a view is loaded and before the grid uses it to build columns or queries. Return a modified Models.ViewDefinition to transform what the grid ultimately renders — for example, to ensure a specific column is always present regardless of the view's own configuration. Async so callers can consult metadata caches, services, or other async resources while deciding what to include.
ViewIdsIEnumerable<Guid>?
List of id's of the views that the grid should limit to in the view dropdown.
ViewSortViewSort
NameAscending
Sort order of the views in the view dropdown.
Name: AllowAddingColumns
Type: bool
Default: False
Description: Gives the grid a Columns button, which lets the user add columns they may read to the view shown — from the grid's table, and from the tables its lookups lead to, and theirs, up to five tables deep, so no record is shown twice — and hide and show the view's own. The added columns last while the grid shows the view; a view saved with FluentGridBase.AllowSavedViews keeps them. Not offered on a grid bound to a GridBase.DataSource, whose query is the data source's. Off by default.
Name: AllowChangingLayout
Type: bool
Default: False
Description: When true, the toolbar has a layout dropdown: automatic, table rows or cards. The layout the user picks is kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Defaults to false.
Name: AllowChangingPageSize
Type: bool
Default: True
Description: When true, the user can change the number of items displayed per page.
Name: AllowDownloadForFileColumns
Type: bool
Default: True
Description: When true (the default), the grid renders a per-row download icon at the trailing edge of file and image column cells. Clicking it streams the file to the user's browser. Set to false to suppress the icon — for example on read-only audit grids where file export isn't allowed.
Name: AllowEdit
Type: bool
Default: False
Description: Should the option be available for the user to turn on inline editing for the grid.
Name: AllowFiltering
Type: bool
Default: False
Description: When true, the toolbar has a Filter button, which opens the view's filters to change: conditions on its columns, nested in groups, and related tables to filter by — every filter FetchXML can express, over the columns and tables the user may read. The changes last while the grid shows the view; another view starts from its own filters. Not offered on a grid bound to a GridBase.DataSource, whose query is the data source's. Defaults to false: the user can take away every filter the view has, which a view meant to narrow a page's records may not want.
Name: AllowGrouping
Type: bool
Default: False
Description: When true, a strip above the column headers lets the user group the rows: they drag a column's header onto it, and the strip then shows the grouping, to turn its order around, pick a date column's span or the range of a number each group covers, or take it away. Only the columns a grid can be grouped by can be dragged; their menus offer grouping by them too. The user's grouping is kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Without it, a grouping the page sets (GridBase.GroupBy, GridBase.GroupLevels) is not the user's to change. Defaults to false.
Name: AllowNavigateOnPrimaryNameClick
Type: bool
Default: True
Description: When true (the default) and the grid has a registered 'edit' button (a GridButton with IsOpenRecordButton=true), the cell that renders the table's primary-name column becomes a hyperlink. Clicking it dispatches the same per-row invocation that a row double-click would — so a user can jump to the edit form (or the navigated edit URL, depending on the registered button) without first selecting the row. Set to false to suppress the hyperlink and render the primary-name cell as plain text. Has no effect when no edit button is registered.
Name: AllowNavigateOnRowDoubleClick
Type: bool
Default: True
Description: When true (the default) and the grid has a registered 'edit' button (a GridButton with IsOpenRecordButton=true), double-clicking a row invokes that button's OnClick for the row's record — opening the edit dialog or navigating to the edit URL, whichever the button does. Set to false to suppress the double-click handler. Has no effect when no edit button is registered.
Name: AllowNearSearch
Type: bool
Default: False
Description: A Near button on the toolbar: only the records within a distance of a place — an address found with the map provider's search, or the visitor's location — nearest first, with a Distance column the cards show too, and the circle drawn on the map layouts. A column's sort orders them instead. It reads the coordinates in FluentGridBase.MapLatitudeColumn and FluentGridBase.MapLongitudeColumn, needs the Maps package (AddPowerPortalsProWebBlazorMaps), and isn't offered on a grid bound to a shared DataSource. The place is kept in the URL with the rest of the grid's state. Off by default.
Name: AllowPreviewForFileColumns
Type: bool
Default: True
Description: When true (the default), the grid renders a per-row 'eye' preview icon at the trailing edge of file and image column cells whose contents can be rendered inline (images, PDFs, plain text). Set to false to suppress the icon — for example on grids where the columns shouldn't double as a preview entry point.
Name: AllowSavedViews
Type: bool
Default: False
Description: Lets signed-in users save the grid as they've arranged it — its filters, columns, sort, grouping, totals, layout and page size — as views of their own, offered in the view picker beside the grid's views, and choose their default view and hide the views they don't use. Off by default. Needs the Power Portals Pro Core solution's saved-view tables; an internal user also needs the Power Portals Pro Saved Views security role.
Name: AllowSearch
Type: bool
Default: True
Description: Should the user be allowed to search the grid.
Name: BorderVisible
Type: bool
Default: True
Description: Controls whether a visible border is rendered around the grid.
Name: CardFileColumn
Type: string?
Description: A file column that makes each default card a file tile: the file's type icon, large — or, for an image, a thumbnail of it — above its name, with buttons that preview and download it (see FluentGridBase.AllowPreviewForFileColumns and FluentGridBase.AllowDownloadForFileColumns), and the grid's other columns beneath. A Components.FileGrid sets it to the column it manages.
Name: CardImageColumn
Type: string?
Description: An image column each card shows as an avatar beside its title: a contact's photo, an account's logo ('entityimage', or one of the table's own image columns). A record with no image, or whose image the user may not read, shows the initials of its name in a color the name picks.
Name: CardImageSize
Type: AvatarSize
Default: Size40
Description: The size of the avatar FluentGridBase.CardImageColumn shows. Defaults to 40 pixels.
Name: CardTemplate
Type: RenderFragment<GridCardContext>?
Description: The content of each card in GridLayout.Cards, in place of the card the grid builds from its columns. The grid still draws the card itself — its border, the selection checkbox and selected state, the mark of a pending change — around this content.
Name: ColumnAggregates
Type: IReadOnlyList<ColumnAggregateInfo>?
Description: Figures for the grid's footer, by column: a total, average, minimum, maximum or count shown under the column, worked out over every record the grid matches — its view, filters and search — rather than the page on screen, each in a format of its own. For a grid showing a view's columns; a declared GridColumn can say the same with its own Aggregates, and a column named in both shows both sets, the declared column's format winning for a figure both give. Number and money columns take every figure, date columns the earliest, latest and count, and the rest a count. A footer row appears once any column shown has a figure. A format is a .NET number format — N0 for no decimals, N1 for one, C0, P1, #,##0.0 — applied in the user's culture; it shapes a total, average, minimum or maximum, while a count and a date keep their own format, and money keeps the base currency's symbol. A figure without one is formatted as the column's cells are.
Name: ColumnMenuItems
Type: GridColumnMenuItems
Default: All
Description: What a column header's menu offers besides sorting: filtering the rows by the column, grouping them by it, the totals under it, hiding and moving columns, and pinning them. All of them by default; the user's choices but their filters are kept in the URL with the rest of the grid's state when GridBase.PersistedStateQueryParameter is set. Filtering is offered with FluentGridBase.AllowFiltering, on the columns the user may read; grouping with GridBase.AllowGrouping, on the columns rows can be grouped by; neither on a grid bound to a GridBase.DataSource; totals on the columns that take a figure.
Name: Columns
Type: RenderFragment?
Description: Optional Components.GridColumns fragment carrying consumer-declared Components.GridColumn children. When supplied, the grid switches to replace mode: only the declared columns render (in declared order), the FetchXML projection is rewritten to match, and the underlying view's column list is ignored. null leaves the grid in its default behavior (auto-generate columns from the view's resolved column set).
Name: CustomViewDefinitions
Type: List<ViewDefinition>?
Description: Custom views to display in the dropdown.
Name: DataSource
Type: ViewDataSource?
Description: Optional shared Data.ViewDataSource. When set, the grid reads its rows + total count from the datasource instead of issuing its own Threading.CancellationToken) call — the same datasource can drive a sibling <DataverseChart> or a second grid so they all paginate / filter / search together off one round-trip. Standalone usage (no GridBase.DataSource) keeps the existing internal-state machine — the grid composes FetchXML and fetches via IPowerPortalsProService directly. What the datasource does NOT own: per-grid UI state (selected rows, pending row creates / updates / deletes, column widths). Those stay grid-local — two grids sharing one datasource can still have independent selection and per-grid pending edits. When ViewDataSource.Highlight is set (e.g. via a chart slice click in cross-filter 'highlight' mode), rows whose value in the highlighted column doesn't match are visually muted via a CSS class; the row data + selection are unaffected (the soft cross-filter is purely styling).
Name: DefaultItemsPerPage
Type: int
Default: 50
Description: Default number of records to load on a page.
Name: DefaultViewId
Type: Guid?
Description: Id of the view that the grid should display upon initial load.
Name: Editable
Type: bool
Default: False
Description: Is inline editing turned on for the grid.
Name: Filters
Type: IReadOnlyList<QueryFilter>?
Description: Additional server-side filters AND-merged onto the resolved view's FetchXML before paging / sorting / searching kick in. Forwarded to Query.IFetchXmlQueryComposer's FetchXmlQueryOptions.Filters, so each entry is dispatched by runtime type (e.g. Models.RelationshipFilter AND-merges a relationship link-entity). Typical use: the LinkExistingRecordGridButton picker passes a Models.RelationshipFilter with RelationshipFilterMode.ExcludeExistingRecords so already- linked records are hidden from the M2M lookup dialog. Combines additively with SubGrid's own internal relationship filter (which is built into the FetchXML directly rather than going through the composer's Filters slot) — both end up in the same query.
Name: FullSize
Type: bool
Default: False
Description: When true, the grid expands to fill all available vertical space instead of using a fixed minimum height.
Name: GroupBy
Type: string?
Description: A column of the grid's table to group the rows by: a choice, yes/no, status, lookup (owner and customer among them), single line of text, number (a group for each value) or date column, shown or not. Each group starts with a header row giving its value, how many records it holds and its own footer figures under their columns; it collapses to that row and expands again. The groups cover every record the grid matches, not the page, which can end part way through one. The rows are sorted by the column first, the grid's own sort ordering them within each group. A column with more than QueryGrouping.MaximumGroups values, or one the user may not read, leaves the rows ungrouped, and the grid says so. Cards show a header above each group's cards; a grid bound to a GridBase.DataSource groups the data source. GridBase.GroupLevels groups by more than one column. With GridBase.AllowGrouping, the grouping the grid starts with: the user's own replaces it, and a change here replaces the user's. Bind it (@bind-GroupBy) to follow the user's.
Name: GroupByDateGrouping
Type: DateGrouping
Default: Day
Description: The span each group covers when GridBase.GroupBy is a date column — a minute, hour, day, week, month, quarter or year, or a fiscal period or year (QueryGroupBy.DateGroupings), in the user's time zone. A day by default. Minutes and hours in steps of more than one take GridBase.GroupLevels, whose QueryGroupBy.RangeSize sets the step.
Name: GroupByDescending
Type: bool
Default: False
Description: Puts the groups of GridBase.GroupBy in descending order — Z to A, latest first.
Name: GroupLevels
Type: IReadOnlyList<QueryGroupBy>?
Description: The columns the rows are grouped by, outermost first — up to QueryGrouping.MaximumLevels, each grouping the groups of the one before — in place of GridBase.GroupBy, which names one. A date column can only be the innermost. As GridBase.GroupBy does, the grouping the grid starts with when its users may group: bind it (@bind-GroupLevels) to follow theirs.
Name: HidePaging
Type: bool
Default: False
Description: Force the page size and paging components to be hidden. Only do this when the number of items is known and the page size is set to something greater than the item count.
Name: IncludeSearchInPersistedState
Type: bool
Default: False
Description: When true, the active search text is included in the persisted state URL parameter (under the q field). Defaults to false — search terms can be sensitive, accumulate in browser history, and leak into HTTP referrers, so the grid keeps them out of the URL unless the consumer explicitly opts in. Has no effect when GridBase.PersistedStateQueryParameter is not set.
Name: InitialSearchText
Type: string?
Description: The search the grid starts with, as if the user had typed it — the Advanced Search dialog passes on what was typed into its lookup this way. Read once, when the grid initializes; a search restored from the persisted state wins over it. Ignored with a GridBase.DataSource, which owns its search.
Name: IsDirty
Type: bool
Default: False
Description: Indicates whether the grid has unsaved create, update, or delete operations pending.
Name: Layout
Type: GridLayout
Default: Table
Description: How the grid lays out its records: as table rows (the default), as cards that wrap to fill the grid's width, or GridLayout.Auto — cards on a narrow viewport, table rows on a wide one. Bind it (@bind-Layout) to follow the user's choice when FluentGridBase.AllowChangingLayout is on.
Name: LoadedRecords
Type: IEnumerable<TableRecord>
Description: Records currently rendered in the grid (the most recent page of results). Intended for toolbar commands that need to act on 'everything shown' — e.g. a bulk download button. Does not span pages; bulk-across-pages operations should run their own unpaged fetch instead.
Name: MapHeight
Type: string?
Description: How tall the map layouts are: the map, and in GridLayout.Map the list of cards beside it, which scrolls. Any CSS length; default 560px. Below the grid's mobile width the Map layout's map is a fixed height above the cards.
Name: MapLatitudeColumn
Type: string
Default: address1_latitude
Description: The column holding each record's latitude in the map layouts. Defaults to address1_latitude, an account's or contact's. The grid fetches the coordinates beside its columns, but a grid bound to a shared DataSource has only those its query reads.
Name: MapLongitudeColumn
Type: string
Default: address1_longitude
Description: The column holding each record's longitude in the map layouts. Defaults to address1_longitude, an account's or contact's.
Name: MapMaximumRows
Type: int
Default: 1000
Description: The most records GridLayout.MapOnly loads onto the map. Default 1,000. When more match, the map shows the first of them and says so; a search or filter narrows them down.
Name: MapPageSize
Type: int
Default: 250
Description: How many records GridLayout.MapOnly asks for at a time as it loads them all onto the map. Default 250, so a thousand records take four requests; at most 5,000, Dataverse's largest page.
Name: MapPrintList
Type: GridMapPrintList
Default: Selected
Description: Which records a printout of GridLayout.Map lists under the map, each with its card's fields: the selected ones (every card, with none selected), those whose pins are in view, every card, or none. Users change it in the Settings menu while the map's Print button shows (FluentGridBase.ShowMapPrintButton). Default GridMapPrintList.Selected.
Name: MapShowsSelectedOnly
Type: bool
Default: True
Description: In GridLayout.Map, with records selected on the cards, the map shows only theirs — with none selected, every record's — and a printout lists only them. Users switch it in the Settings menu. GridLayout.MapOnly, whose pins are how records are selected, shows every record either way. Default true.
Name: MaxHeight
Type: string?
Description: Max Height that the grid control should expand to.
Name: MaximumRangedValues
Type: int?
Description: The most rows of values the grid reads to group a number in ranges (QueryGroupBy.RangeSize) — each combination of values, under outer groups — when it should read fewer than the host allows. More values than this and the rows are shown ungrouped, the grid saying there are too many groups. The host's limit (RangeGroupingOptions.MaximumRangedValues, 10,000 unless it sets another) holds a larger one to it; null, the default, uses the host's. A grid bound to a ViewDataSource is grouped by it, so takes the data source's own limit (ViewDataSourceOptions.MaximumRangedValues) in place of this.
Name: MinCardWidth
Type: string?
Description: The narrowest a card may be, as any CSS length ('240px', '18rem', '30%'): as many cards fit on a row as are at least this wide, and they share the row's width equally. A card is never wider than the grid. Unset, it is 320 pixels — 200 for file tiles — or what a --ppp-card-min-width CSS variable around the grid says.
Name: MinHeight
Type: string?
Default: 300px
Description: Minimum height that the grid control should occupy.
Name: Mode
Type: GridMode
Default: RecordSelection
Description: Sets the behavioral mode of the grid, such as default interaction or record-selection mode.
Name: NearDistance
Type: double?
Description: The distance the Near button starts at. Default 25.
Name: NearDistances
Type: IReadOnlyList<double>?
Description: The distances the Near button offers. Default 1, 5, 10, 25, 50 and 100.
Name: NearDistanceUnit
Type: DistanceUnit
Default: Miles
Description: The unit the Near button starts in. Default miles.
Name: PageSizes
Type: IEnumerable<int>
Description: Collection of available page sizes for the grid.
Name: PagingMode
Type: GridPagingMode
Default: Paged
Description: Determines whether the grid uses traditional paging or infinite-scroll virtualization.
Name: PersistedStateQueryParameter
Type: string?
Description: Name of the URL query-string parameter to persist the grid's interactive state to. When set, the grid reads this parameter on initial load and seeds the active view, page number, page size, and sort from it; subsequent user actions (view pick, page change, header sort, etc.) write the new state back via Components.NavigationManager's replace-state path. Persistence survives page refresh and bookmarks.
Name: Record
Type: TableRecord?
Description: The parent record supplied via a cascading parameter; related records are filtered by this record's identity.
Name: RelationshipName*
Type: string
Description: The schema name of the relationship used to filter and display related records in this sub-grid.
Name: SavedViewsKey
Type: string?
Description: Names this grid among the controls of its table, so the views saved on it and the user's default and hidden views are its own: it offers the views saved on it as well as the views saved on controls with no key, and its default and hidden views are set for it alone. Without one, the grid shares its views with every grid and calendar of its table that has none, and its default and hidden views with every grid that has none. Letters, digits, -, _ and ..
Name: SelectedRecords
Type: IEnumerable<TableRecord>
Description: Records that are currently selected in the Grid.
Name: SelectFromEntireRow
Type: bool
Default: True
Description: When true, clicking anywhere on a row selects it; when false, only the checkbox selects the row.
Name: SelectMode
Type: DataGridSelectMode
Default: Multiple
Description: Controls whether the grid allows single or multiple row selection.
Name: SelfReferencingRole
Type: EntityRole?
Description: Which side of a self-referencing many-to-many relationship SubGrid.Record is on — EntityRole.Referencing for the relationship's first side, EntityRole.Referenced for its second. Required when the relationship relates a table to itself, where the metadata can't tell the two sides apart; ignored otherwise. The grid's link and unlink buttons pass it on with the records they associate.
Name: ShowMapPinNumbers
Type: bool
Default: False
Description: Numbers the records in GridLayout.Map: each card and its pin show the same number — the record's place in the grid's results, counting on from the pages before — so a record seen on the map can be found in the list, and on a printout. A record without coordinates keeps its number and has no pin. Default false.
Name: ShowMapPrintButton
Type: bool
Default: False
Description: A Print button on the toolbar, beside Filter and Refresh, while a map layout shows: it prints the map — with, in GridLayout.Map, the cards beside it listed under it, numbered as their pins — and saves it as an image. Default false.
Name: ShowRecordLinks
Type: bool
Default: True
Description: Whether a value links to its record's page, registered with AddRecordPage: a lookup to a record of a table with a page, and — with no open button on the toolbar — the primary name, which a double-click opens too. Default true; a column can say otherwise with its own ShowRecordLinks. A table with no page registered shows no links either way.
Name: SignInUrl
Type: string
Default: Account/Login
Description: Where a user who isn't signed in is sent to sign in, from the saved views' menu, which asks them to first; they come back to this page (ReturnUrl). Relative to the app's base address. Defaults to Account/Login, the framework's own sign-in page.
Name: Title
Type: string?
Description: Name to display when the view dropdown is not displayed.
Name: ToolbarItems
Type: RenderFragment?
Description: The controls in the grid's toolbar: Components.GridToolbarItems such as the grid buttons (Components.GridButton, Components.NewRecordGridButton<T>, Components.ExportGridButton, …) and Components.GridSplitButton. They appear in the order they are declared, ahead of the search box.
Name: TransformViewAsync
Type: Func<ViewDefinition, Task<ViewDefinition>>?
Description: Optional callback that runs immediately after a view is loaded and before the grid uses it to build columns or queries. Return a modified Models.ViewDefinition to transform what the grid ultimately renders — for example, to ensure a specific column is always present regardless of the view's own configuration. Async so callers can consult metadata caches, services, or other async resources while deciding what to include.
Name: ViewIds
Type: IEnumerable<Guid>?
Description: List of id's of the views that the grid should limit to in the view dropdown.
Name: ViewSort
Type: ViewSort
Default: NameAscending
Description: Sort order of the views in the view dropdown.

Events

Name
Type
Description
EditableChangedEventCallback<bool>
Callback invoked when the inline editing state changes.
GroupByChangedEventCallback<string>
Raised when the user groups the rows by another column, or takes the grouping away (null), when GridBase.AllowGrouping is on.
GroupByDateGroupingChangedEventCallback<DateGrouping>
Raised when the user picks another span for a date column's groups, when GridBase.AllowGrouping is on.
GroupByDescendingChangedEventCallback<bool>
Raised when the user turns the order of the groups around, when GridBase.AllowGrouping is on.
GroupLevelsChangedEventCallback<IReadOnlyList<QueryGroupBy>>
Raised with the columns the rows are grouped by, outermost first, when the user changes the grouping — none when they take it away.
LayoutChangedEventCallback<GridLayout>
Raised when the user switches the grid's layout from its toolbar.
OnSearchTextChangedEventCallback<string>
Called when the grid's search changes — once the user stops typing, after the search has gone out. Not called for the search the grid starts with. (React's grid also calls it when a switch of view clears the search; this grid keeps the search across views.)
SelectedRecordsChangedEventCallback<IEnumerable<TableRecord>>
Callback invoked when the selected records collection changes.
Name: EditableChanged
Type: EventCallback<bool>
Description: Callback invoked when the inline editing state changes.
Name: GroupByChanged
Type: EventCallback<string>
Description: Raised when the user groups the rows by another column, or takes the grouping away (null), when GridBase.AllowGrouping is on.
Name: GroupByDateGroupingChanged
Type: EventCallback<DateGrouping>
Description: Raised when the user picks another span for a date column's groups, when GridBase.AllowGrouping is on.
Name: GroupByDescendingChanged
Type: EventCallback<bool>
Description: Raised when the user turns the order of the groups around, when GridBase.AllowGrouping is on.
Name: GroupLevelsChanged
Type: EventCallback<IReadOnlyList<QueryGroupBy>>
Description: Raised with the columns the rows are grouped by, outermost first, when the user changes the grouping — none when they take it away.
Name: LayoutChanged
Type: EventCallback<GridLayout>
Description: Raised when the user switches the grid's layout from its toolbar.
Name: OnSearchTextChanged
Type: EventCallback<string>
Description: Called when the grid's search changes — once the user stops typing, after the search has gone out. Not called for the search the grid starts with. (React's grid also calls it when a switch of view clears the search; this grid keeps the search across views.)
Name: SelectedRecordsChanged
Type: EventCallback<IEnumerable<TableRecord>>
Description: Callback invoked when the selected records collection changes.

Methods

Name
Parameters
Type
Description
ClearSelectionAsyncTask
Clears all currently selected rows.
OpenFileDownloadAsyncTableRecord record
string columnName
Task
Fetches the file/image column's bytes for record and streams them to the user's browser as a download. Invoked by the per-row download icon in file and image cells.
OpenFilePreviewAsyncTableRecord record
string columnName
Task
Opens the inline preview dialog for the file/image column columnName on record. Invoked by the per-row preview icon in file/image cells and also available to composing components (for example, a toolbar button on a wrapping grid) that want a programmatic entry point.
RefreshAsyncbool forceRefresh
Task
Instructs the grid to re-fetch and render the current data from the supplied data source.
Validatebool
Validates all editable rows in the grid.
Name: ClearSelectionAsync
Type: Task
Description: Clears all currently selected rows.
Name: OpenFileDownloadAsync
Parameters: TableRecord record
string columnName
Type: Task
Description: Fetches the file/image column's bytes for record and streams them to the user's browser as a download. Invoked by the per-row download icon in file and image cells.
Name: OpenFilePreviewAsync
Parameters: TableRecord record
string columnName
Type: Task
Description: Opens the inline preview dialog for the file/image column columnName on record. Invoked by the per-row preview icon in file/image cells and also available to composing components (for example, a toolbar button on a wrapping grid) that want a programmatic entry point.
Name: RefreshAsync
Parameters: bool forceRefresh
Type: Task
Description: Instructs the grid to re-fetch and render the current data from the supplied data source.
Name: Validate
Type: bool
Description: Validates all editable rows in the grid.