Blazor Grid - Data binding

Use Blazor Bootstrap grid component to display tabular data from the data source. And it supports client-side and server-side filtering, paging, and sorting.

Data parameter - Assign collection#

Assign a collection to the Data parameter to render the grid dynamically. The example below will render different department employees in the individual grid.

Data parameter - Update collection#

You can update the collection assigned to the Data parameter. In the below example, the grid will render the updated collection.
Important

The Add Employee button click adds a new employee to the existing employees collection—so explicit grid refresh is required.

The Add Employee 2 button click creates a shallow copy of the employees collection and adds a new employee. This new collection is assigned to the employees variable. Now, the employees variable has a new reference. So the grid will refresh automatically. An explicit grid refresh call is not required.