Home

Awesome

DrawnTable

Custom WinForms control based on PictureBox for creating versatile tables.<br/> It's fast, uses almost no memory, doesn't have any dependencies, and not limited by limitations of WinForms since it draws itself from scrach.

Demo app

Installation

Get it from NuGet: NuGet

Features

Initialization

Before using the control you need to initialize it by providing list of row and column configurations:

drawnTable.Table.Create(Rows, Cols);

There is HeaderCreator class that can help you create those configurations. For example here's how to generate headers for a range of dates, and then get header index for some date:

HeaderCreator headers = new();
var columns = headers.Day.GenerateHeaders(dayStart, dayEnd, colFilter, "dd.MM, dddd");
...
int columnIndex = headers.Day.GetIndexByValue(date);

See demo appication for more usage samples.

Demo app