DrawnTable 1.0.3
dotnet add package DrawnTable --version 1.0.3
NuGet\Install-Package DrawnTable -Version 1.0.3
<PackageReference Include="DrawnTable" Version="1.0.3" />
paket add DrawnTable --version 1.0.3
#r "nuget: DrawnTable, 1.0.3"
// Install DrawnTable as a Cake Addin
#addin nuget:?package=DrawnTable&version=1.0.3
// Install DrawnTable as a Cake Tool
#tool nuget:?package=DrawnTable&version=1.0.3
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.
Installation
Features
- Cell Drag & Drop
- Subheaders
- Cell Copy & Paste (using Ctrl + drag)
- Headers can span multiple rows (or columns)
- Cells can span multiple rows
- Cells can overlap each other (they will be merged or replaced placeholder)
- Cell styling (font, backound color, margin, text aligment)
- Table styling (font, background color, border color)
- Printing support (you can print the table or draw it using your
Graphics
instance) - Cells can be disabled (user cannot interact with them)
- ToolTip for cells
- Supported events:
- CellWithValueClick, CellOverlapPlaceholderClick
- CellCreating, CellCreated
- CellCopied, CellPasted
- CellDragOver, CellDragDropFinished
- CellsMerging
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.
Product | Versions |
---|---|
.NET | net5.0-windows7.0 |
.NET Framework | net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481 |
-
.NETFramework 4.0
- Microsoft.Bcl.Async (>= 1.0.168)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.5
- System.ValueTuple (>= 4.5.0)
-
net5.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.