DrawnTable 1.0.2
See the version list below for details.
dotnet add package DrawnTable --version 1.0.2
NuGet\Install-Package DrawnTable -Version 1.0.2
<PackageReference Include="DrawnTable" Version="1.0.2" />
paket add DrawnTable --version 1.0.2
#r "nuget: DrawnTable, 1.0.2"
// Install DrawnTable as a Cake Addin #addin nuget:?package=DrawnTable&version=1.0.2 // Install DrawnTable as a Cake Tool #tool nuget:?package=DrawnTable&version=1.0.2
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 Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0-windows7.0 is compatible. net6.0-windows was computed. net7.0-windows was computed. net8.0-windows was computed. |
.NET Framework | net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.0
- 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.