Data control
DataControlFilter and sort one table, then read it as grid rows, chart series or CSV.
Overview
DataControl wraps a DataTable for Blazor apps: filter and sort the rows once, then read them as grid rows, chart series, CSV or JSON. Use it when one data set, such as a list of orders, feeds several views, and when you need to know what users changed: IsDirty and GetChanges track edits. If you know pandas or the PowerBuilder DataWindow, the API will feel familiar: DataFrame, ConvertDtypes and a 1-based GetItem.
Examples
#Filter and sort once; a grid, a chart and a CSV follow
Type a DataView filter like Amount > 1000 or Customer LIKE 'A%' and pick a sort; grid, chart and CSV change together, and a bad expression is reported, keeping the old filter.
| Order | Customer | Amount | Open | Ordered |
|---|---|---|---|---|
| A100 | Peppercorn | 1,280.50 | True | 9/2/2026 |
| A101 | Marmalade | 845.25 | False | 9/5/2026 |
| A102 | Puddleby | 2,210.00 | True | 9/9/2026 |
| A103 | Thistlewood | 1,640.75 | True | 9/12/2026 |
| A104 | Peppercorn | 420.00 | False | 9/15/2026 |
| A105 | Marmalade | 1,995.10 | True | 9/19/2026 |
| A106 | Puddleby | 760.40 | False | 9/23/2026 |
| A107 | Peppercorn | 3,120.00 | True | 9/30/2026 |
Order,Customer,Amount,Open,Ordered A100,Peppercorn,1280.50,True,9/2/2026 12:00:00 AM A101,Marmalade,845.25,False,9/5/2026 12:00:00 AM A102,Puddleby,2210.00,True,9/9/2026 12:00:00 AM A103,Thistlewood,1640.75,True,9/12/2026 12:00:00 AM A104,Peppercorn,420.00,False,9/15/2026 12:00:00 AM A105,Marmalade,1995.10,True,9/19/2026 12:00:00 AM A106,Puddleby,760.40,False,9/23/2026 12:00:00 AM A107,Peppercorn,3120.00,True,9/30/2026 12:00:00 AM
8 of 8 rows in view; Amount is Decimal, Open is Boolean, Ordered is DateTime.