BPT

Grid

The BptGrid component displays tabular data with sorting, paging, inline editing, and row selection.

Grid Parameters
IDNameDepartmentSalaryStartedActive
1Employee 1Sales41,50003/11/2026True
2Employee 2HR43,00002/09/2026True
3Employee 3Marketing44,50001/10/2026False
4Employee 4Finance46,00012/11/2025True
5Employee 5Engineering47,50011/11/2025True
6Employee 6Sales49,00010/12/2025False
7Employee 7HR50,50009/12/2025True
8Employee 8Marketing52,00008/13/2025True
9Employee 9Finance53,50007/14/2025False
10Employee 10Engineering55,00006/14/2025True
Items per page:
Showing 1–10 of 50
Current Configuration
📋 [+]
<BptGrid Items="@_items"
         IsEditable="true"
         OnSave="HandleSave">
    <BptGridColumn Property="@(e => e.Id)" Title="ID" Width="60px" Editable="false" />
    <BptGridColumn Property="@(e => e.Name)" Title="Name" />
    <BptGridColumn Property="@(e => e.Department)" Title="Department" />
    <BptGridColumn Property="@(e => e.Salary)" Title="Salary" Format="N0" />
    <BptGridColumn Property="@(e => e.StartDate)" Title="Started" Format="d" />
    <BptGridColumn Property="@(e => e.IsActive)" Title="Active" />
</BptGrid>

@code {
    private List<GridDemoItem> _items = new();

    protected override void OnInitialized()
    {
        _items = LoadEmployees();
    }

    private void HandleSave(BptGridSaveEventArgs<GridDemoItem> args)
    {
        // args.ChangedItems — modified items
        // args.Changes — per-row details with originals
    }
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.