Skip to main content
A newer version of this page is available. .

Grid

  • 4 minutes to read

The DevExpress Grid for Blazor (DxGrid) allows you to display, manage, and shape tabular data.

Grid Overview

Run Demo: Overview Read Tutorial: Get Started Watch Video: Get Started

Data Binding

The DevExpress Blazor Grid supports the following data binding scenarios:

Run Demo: Grid - Data Binding View Example: How to bind the Web API Service

Column Types

The DevExpress Blazor Grid includes different column types:

Bound Data Columns
These columns get values from the bound data source.
Unbound Data Columns
These columns display values that are not stored in the bound data source. You can calculate column values based on other column values or based on custom logic.
Command Column
This column displays CRUD-related buttons (New, Edit, and Delete) and the Clear button that resets values in the filter row.
Selection Column
This column allows users to select and deselect rows. It contains checkboxes in multiple selection mode and radio buttons in single selection mode.

Sort Data

The DevExpress Blazor Grid allows users to sort data by an unlimited number of columns. The sort glyph indicates the column’s current sort order (ascending or descending). You can also sort data in code.

The Grid supports different sort modes:

Blazor Grid Sort Data

Run Demo: Grid - Sort Data Watch Video: Grid - Sort Data

Group Data

Users can drag and drop column headers onto the Group Panel to group Grid data. You can also group data by any number of columns in code.

The Grid supports interval grouping and custom grouping algorithms.

Blazor Grid Group Data

Run Demo: Grid - Group Data Watch Video: Grid - Group Data

Edit Data

The DevExpress Blazor Grid allows users to edit its data within a standard or pop-up edit form.

The Grid validates user input automatically based on data annotation attributes. You can also implement and apply custom validation rules.

Blazor Grid Edit Data

Run Demo: Grid - Edit Data Watch Video: Grid - Edit Data

Filter Data

The DevExpress Blazor Grid ships with a built-in filter row. This row displays in-place text editors where users can type filter values. You can also manage filter options in code.

Blazor Grid Filter Row

Run Demo: Data Grid - Filter Row

Summary

You can compute summaries across all Grid records (total summaries) or for individual groups (group summaries).

The Grid includes predefined aggregate functions: Sum, Min, Max, Avg, and Count. In addition to these functions, custom logic can also be used to calculate summary values.

Blazor Grid Summary

Run Demo: Grid - Summary Watch Video: Grid - Summary

Selection

The DevExpress Blazor Grid supports single and multiple row selection. Users can select and deselect rows by mouse clicks or in the selection column. You can also manage selection in code.

Blazor Grid Selection

Run Demo: Grid - Selection

Master-Detail View

The DevExpress Blazor Grid allows you to build hierarchical layouts of any complexity and depth.

Blazor Grid Master Detail View

Run Demo: Grid - Master-Detail View

Column Management

Users can resize and reorder Grid columns at runtime. The Grid also supports the Column Chooser that allows users to manage column visibility and position.

Blazor Grid Column Chooser

Run Demo: Grid - Resize Columns Run Demo: Grid - Column Chooser

Paging

The DevExpress Blazor Grid can split data rows across multiple pages and display a pager to enable data navigation. The Grid includes multiple options for pager customization.

The Grid also ships with the page size selector that allows users to change page size at runtime.

Blazor Grid Paging

Run Demo: Grid - Paging

Scrolling

The DevExpress Blazor Grid displays a vertical/horizontal scrollbar when content height/width exceeds the size of the component itself.

Blazor Grid Scrolling

Run Demo: Grid - Vertical Scrolling Run Demo: Grid - Horizontal Scrolling

Appearance

Use templates to customize content and appearance of different Grid elements:

The Grid also allows you to color grid cells and rows according to their values.

Blazor Grid Appearance Customization

Run Demo: Grid - Templates Run Demo: Grid - Conditional Formatting