Fabulous.Avalonia.DataGrid
10.0.1
dotnet add package Fabulous.Avalonia.DataGrid --version 10.0.1
NuGet\Install-Package Fabulous.Avalonia.DataGrid -Version 10.0.1
<PackageReference Include="Fabulous.Avalonia.DataGrid" Version="10.0.1" />
<PackageVersion Include="Fabulous.Avalonia.DataGrid" Version="10.0.1" />
<PackageReference Include="Fabulous.Avalonia.DataGrid" />
paket add Fabulous.Avalonia.DataGrid --version 10.0.1
#r "nuget: Fabulous.Avalonia.DataGrid, 10.0.1"
#:package Fabulous.Avalonia.DataGrid@10.0.1
#addin nuget:?package=Fabulous.Avalonia.DataGrid&version=10.0.1
#tool nuget:?package=Fabulous.Avalonia.DataGrid&version=10.0.1
DataGrid for Fabulous.Avalonia
The DataGrid control is a cross-platform view that displays repeating data in a customizable grid. The control can be styled, templated and bound.
The data grid needs to be bound to an observable collection in a view model that can be found in a related data context. Based on AvaloniaUI DataGrid.
How to use
- Add the
Fabulous.Avalonia.DataGridpackage to your project. - Open
Fabulous.Avaloniaat the top of the file where you declare your Fabulous program (eg. Program.stateful).
open Fabulous.Aavalonia
open type Fabulous.Avalonia.View
Using the DataGrid Widget
Now you can use the DataGrid and AutoGeneratedDataGrid widgets in your Fabulous app as follows:
VStack() {
DataGrid(model.People)
(CustomDataGrid(model.People) {
DataGridTextColumn("Name", Binding("Name"))
DataGridTextColumn(TextBlock("Age"), Binding("Age"))
DataGridCheckBoxColumn("IsMale", Binding("IsMale"))
})
.gridLinesVisibility(DataGridGridLinesVisibility.Horizontal)
.borderThickness(1.0)
.borderBrush(SolidColorBrush(Colors.Gray))
}
A full, working example is included in the DataGridPage sample
Other useful links:
Additionally, we have the Fabulous Discord server where you can ask any of your Fabulous related questions.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Avalonia.Controls.DataGrid (>= 12.1.2)
- Fabulous.Avalonia (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.1 | 103 | 9/7/2026 |
| 10.0.0 | 109 | 8/24/2026 |
| 3.0.0-pre9 | 204 | 1/17/2025 |
| 3.0.0-pre8 | 197 | 12/27/2024 |
| 3.0.0-pre7 | 189 | 11/27/2024 |
| 3.0.0-pre6 | 209 | 5/20/2024 |
| 3.0.0-pre5 | 222 | 5/17/2024 |
| 3.0.0-pre4 | 218 | 4/19/2024 |
| 3.0.0-pre3 | 242 | 4/13/2024 |
| 3.0.0-pre2 | 220 | 3/31/2024 |
| 3.0.0-pre13 | 447 | 11/19/2025 |
| 3.0.0-pre12 | 201 | 5/24/2025 |
| 3.0.0-pre11 | 254 | 4/7/2025 |
| 3.0.0-pre10 | 184 | 2/28/2025 |
| 3.0.0-pre1 | 216 | 3/23/2024 |
| 2.4.0 | 310 | 4/7/2025 |
| 2.4.0-pre1 | 212 | 2/9/2024 |
| 2.3.0 | 317 | 1/17/2024 |
| 2.2.0 | 236 | 1/9/2024 |
| 2.1.0 | 243 | 1/8/2024 |
### Added
- Document how to build, run, and debug the generated MAUI template's `net10.0-windows10.0.19041.0` target in the MAUI tutorial (#1171).
### Changed
- Fix the MAUI get-started documentation to reference `net10.0-android` / `net10.0-ios` instead of the retired `net7.0-android` / `net7.0-ios` TFMs (Repo Assist, #1174).
- Document the triage of the 60 `FS0044` deprecation warnings from the MAUI Release build in `.github/RELEASE_CHECKLIST.md`; none of the flagged `EntryCell`, `SwitchCell`, `Page.IsBusy`, or per-edge safe-area APIs have been removed from the supported MAUI 10 baseline (#1148).
- Mark the excluded, Xamarin-era legacy documentation trees under `docs/advanced`, `docs/basics`, and `docs/samples-and-tutorials` with an unmistakable legacy content notice (Repo Assist).
- Require an entry in `CHANGELOG.md` for every pull request, documented in `AGENTS.md` (Repo Assist).
- Replace retired docs.fabulous.dev links across `docs/` with the current documentation site at https://fabulous-dev.github.io/Fabulous/ (Repo Assist, #1207).
- Pin `actions/github-script` to a commit SHA (v9.0.0) in `pr-artifacts.yml` for supply-chain safety (#1301, #1300).
### Fixed
- Default the `fabulous-mauicontrols` template's Windows target to `RuntimeIdentifier=win-x64` / `Platform=x64` (when not already set by the caller) so `dotnet publish` for `net10.0-windows10.0.19041.0` no longer fails with `error: Packaged .NET applications with an app host exe cannot be ProcessorArchitecture neutral`, and document the workaround in the deployment guide (Repo Assist, #1286).
- Regenerate `docs/api/source-inventory.md` via `eng/monorepo/generate-api-reference.py` so the Build website CI check passes again (Repo Assist, #1283).
- Rename `website/themes/fabulous.dev-theme` to `website/themes/fabulous-theme` and update the SCSS `@import` paths in `website/assets/sass/root*.scss` accordingly, matching `theme = 'fabulous-theme'` already set in `website/config.toml` (Repo Assist, #1264).
- Fix `StackArray3.sortInPlace` using the wrong key (`v1` instead of `v2`) for the third element when sorting a 3-element `StackArray3`, which could produce an incorrectly ordered result (Repo Assist, #1170).
- Fix NU1605 package downgrade warnings when building a new project from the MAUI template by aligning the template's default `Microsoft.Maui.Controls`/`Microsoft.Maui.Controls.Compatibility` version with Fabulous.MauiControls's minimum required version (#1171).
- Bump the `fabulous-avalonia` template's default `FSharp.Core` package version from the stale 8.0.301 to 10.0.100, matching the `fabulous-mauicontrols` template (#1179).
- Update the website home page's "Choose your own adventure" section to link to the current MAUI and Avalonia get-started docs instead of the archived Fabulous.MauiControls, Fabulous.XamarinForms, and Fabulous.Avalonia repositories, and remove the outdated paid/commercial support section (Repo Assist, #1166).