Posts

Showing posts from January, 2020

Blazor - Simple Data Grid

I have a reoccurring use case to for a simple data grid in many of my applications.  There are several good data grids for Blazor available that have a lot of features and can display millions of records.  My needs are not that advance, simple functionality and less than 1000 records.  Just enough that a regular table is not enough, and the full data grids are a little overkill. I could get one of the available grids and only use the parts I need, but I thought I would be better to build own for a couple of reasons. Get more experience with Blazor  Fully understand what it takes to build a reusable UI component  I did not want to have to learn new syntax for a data grid  My requirements for the data grid are:  CSS styled  Sort-able columns  With indicator  Show record selected  Pagination of data  I am going to take the Fetch data sample Blazor application and update it to use my new data grid.  CSS Styled  This was the easy requirement.  I kept the bootstrap