Tritium UI
TritiumDataGrid
Display, edit, filter, group, and export tabular or hierarchical data in a MAUI grid.
Key features
- Bind ItemsSource and auto-generate columns, or declare text, numeric, boolean, date, combo, and template columns.
- Let users sort, resize, reorder, hide, and freeze columns on the left or the right.
- Filter with a text box, a distinct-value list or tree, Excel-style filters, and an advanced AND/OR filter.
- Group rows, expand a tree of children, show row details, and switch between a table and a card layout.
- Edit cells inline or with a row template, and undo or accept the changes.
- Select rows or cells, copy the selection as tab-separated text, and paste back into the grid.
- Show column summaries (sum, average, count, min, max), merge equal cells, pin rows, and color cells with conditional rules.
- Page the rows, find text, and save or restore column, sort, filter, and group state.
- Export CSV or Excel, and print or preview the current view as HTML.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- ItemsSource . The rows to display.
- Columns . Explicit text, numeric, boolean, date, combo, or template columns.
- SelectionMode . None, single-row, or multiple-row selection.
- CellEditEnded . Fires after an inline edit; set Cancel on CellEditStarting to block it.
Basic example
Declare this namespace on the page.
xmlns:grid="clr-namespace:Tritium.Maui.DataGrid;assembly=Tritium.Maui.DataGrid"
<grid:TritiumDataGrid ItemsSource="{Binding Orders}" SelectionMode="Single" CanUserFilter="True">
<grid:TritiumDataGrid.Columns>
<grid:DataGridTextColumn HeaderText="Order" BindingPath="OrderId" />
<grid:DataGridNumericColumn HeaderText="Amount" BindingPath="Amount" StringFormat="C" />
</grid:TritiumDataGrid.Columns>
</grid:TritiumDataGrid> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.