Skip to content

davepruitt/NoFrillsDataGrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoFrillsDataGrid

This is a no-frills data grid control for .NET MAUI. There is also an older package for Xamarin if you still use Xamarin.

This package uses SkiaSharp as the means to create and draw the data grid itself. Since it uses SkiaSharp to do the rendering, it can ultimately be ported to any platform that can use SkiaSharp (which is a lot of platforms).

A screenshot and a code example can be found below. Also, there is an example project in the source code.

Install

Available on NuGet

.NET MAUI

NuGet

Screenshot of example

data grid screenshot

Code example

NoFrillsDataGrid g = new NoFrillsDataGrid()
{
    FitCellSizesToLargestText = true,
    DisplayHeaderRow = true,
    Margin = 50,
    BackgroundColor = SKColors.White,
    TableColumnHeaders = new List<string>() { "Column A", "Column B", "Column C", "Column D", "Column E", "Column F" },
    TableCellData = new List<List<object>>()
    {
        new List<object>() { 1, 2, 3, 4, 5, 6 },
        new List<object>() { 7, 8, 9, 10, 11, 12 }
    }
};

g.CalculateExpectedDimensions();

NoFrillsDataGridView gv = new NoFrillsDataGridView()
{
    DataGrid = g,
    WidthRequest = g.CalculatedWidth,
    HeightRequest = g.CalculatedHeight
};

TestScrollView.Content = gv;
            

About

A no-frills data grid control for Xamarin Forms

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages