Fabulous.Avalonia.DataGrid 2.0.0-pre17

This is a prerelease version of Fabulous.Avalonia.DataGrid.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Fabulous.Avalonia.DataGrid --version 2.0.0-pre17
                    
NuGet\Install-Package Fabulous.Avalonia.DataGrid -Version 2.0.0-pre17
                    
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="2.0.0-pre17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Fabulous.Avalonia.DataGrid" Version="2.0.0-pre17" />
                    
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 2.0.0-pre17
                    
#r "nuget: Fabulous.Avalonia.DataGrid, 2.0.0-pre17"
                    
#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@2.0.0-pre17
                    
#: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=2.0.0-pre17&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Fabulous.Avalonia.DataGrid&version=2.0.0-pre17&prerelease
                    
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 net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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
3.0.0-pre9 116 1/17/2025
3.0.0-pre8 114 12/27/2024
3.0.0-pre7 115 11/27/2024
3.0.0-pre6 131 5/20/2024
3.0.0-pre5 139 5/17/2024
3.0.0-pre4 127 4/19/2024
3.0.0-pre3 161 4/13/2024
3.0.0-pre2 139 3/31/2024
3.0.0-pre12 111 5/24/2025
3.0.0-pre11 170 4/7/2025
3.0.0-pre10 104 2/28/2025
3.0.0-pre1 146 3/23/2024
2.4.0 201 4/7/2025
2.4.0-pre1 138 2/9/2024
2.3.0 237 1/17/2024
2.2.0 156 1/9/2024
2.1.0 157 1/8/2024
2.0.0 186 1/1/2024
2.0.0-pre18 180 12/7/2023
2.0.0-pre17 167 11/12/2023
2.0.0-pre16 158 11/1/2023

### Added
- No changes