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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fabulous.Avalonia.DataGrid" Version="10.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fabulous.Avalonia.DataGrid" Version="10.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Fabulous.Avalonia.DataGrid" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Fabulous.Avalonia.DataGrid --version 10.0.1
                    
#r "nuget: Fabulous.Avalonia.DataGrid, 10.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Fabulous.Avalonia.DataGrid@10.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Fabulous.Avalonia.DataGrid&version=10.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Fabulous.Avalonia.DataGrid&version=10.0.1
                    
Install as a Cake Tool

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.DataGrid package to your project.
  • Open Fabulous.Avalonia at 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

Additionally, we have the Fabulous Discord server where you can ask any of your Fabulous related questions.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

### 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).