Blazorise DataGrid: Row Overlay
When enabled, the Row Overlay feature allows you to display supplementary data or contextual information directly on top of specific rows within the DataGrid.
Examples
Row Overlay
<DataGrid TItem="Employee" Data="" RowSelectable=@((x)=> x.Item.FirstName != "John") Responsive> <DataGridColumns> <DataGridColumn Field="@nameof( Employee.FirstName )" Caption="Name" Editable="false" /> </DataGridColumns> <RowOverlayTemplate> <Div> <Button Color="Color.Primary" Size="Size.ExtraSmall"> <Icon Name="IconName.User" /> User Details > </Button> <Button Color="Color.Secondary" Size="Size.ExtraSmall"> <Icon Name="IconName.Building" /> Company Details > </Button> </Div> </RowOverlayTemplate> </DataGrid>
@code { private List<Employee> employeeList = new() { new() { FirstName = "David" }, new() { FirstName = "MLaden" }, new() { FirstName = "John" }, new() { FirstName = "Ana" }, new() { FirstName = "Jessica" } }; }
Hide code example
Copy full example
API
See the API reference for the parameters, events, methods, and related types available to the components covered on this page.