Data Grid

GridControl

Sort, filter, group and resize a bound list. Every other grid page takes one feature further.

Overview

GridControl binds a list through DataSource and TValue, declares its columns in GridColumnsBase and switches behaviours on with Allow* flags. This page shows the core set on a ten-row list. The pages in the Data Grid menu each take one feature further, from batch editing and frozen columns to on-demand loading, grouping with totals and the tree grid; they are listed under Related.

Examples

#Sort, filter, group and resize

Click a header to sort. Use the filter icon in a header to filter. Drag a header into the bar above the grid to group by it, drag a header edge to resize, and drag a header sideways to reorder (AllowColumnReorder is on by default).

Example
Razor
C#
Drag a column header here to group by that column
ID Name Department Role Salary Hire Date
1Avery ChenEngineeringSenior Engineer$145,0003/14/2021
2Blake RiveraEngineeringEngineer$98,0006/1/2023
3Casey PatelEngineeringLead$172,0009/22/2019
4Drew YamamotoDesignUX Designer$112,0001/9/2022
5Elliot MarquezDesignSenior Designer$131,0008/3/2020
6Finley OkaforProductPM$125,00011/15/2022
7Gray SolbergProductSenior PM$154,0004/28/2018
8Hayden LinSalesAE$92,0002/5/2024
9Indigo BrooksSalesSenior AE$118,0007/17/2021
10Jess WakefieldMarketingManager$108,00012/2/2020

Documentation

GridControl, GridColumn and AggregateRow tables are still to be written from Grid/GridControl.razor.cs and its partial files.

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 retry or reload the page.