warptoolkit-data-grids

Implement WarpToolkit GridView and WarpDataGridView controls with SystemColors theming and data binding.

1|1|Updated Jun 12, 2022
One-click install
npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-data-grids-klausloeffelmann
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: warptoolkit-data-grids
Source: https://github.com/KlausLoeffelmann/WinFormsDevTools/tree/main/.github/skills/WARP-DataGridView
Command: npx skills add https://github.com/KlausLoeffelmann/WinFormsDevTools --skill warptoolkit-data-grids-klausloeffelmann

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires WarpToolkit.WinForms, WarpToolkit.WinForms.Specialized.

What problem does it solve? Choosing and configuring the right WarpToolkit grid control for WinForms is confusing: GridView is a virtual-mode, single-column, template-painted control while WarpDataGridView is a classic multi-column DataGridView with SystemColors-based Light/Dark theming, and misusing either leads to broken layouts or lost dark-mode headers. ## Core Features & Use Cases - WarpDataGridView theming: Derives all cell and header colors from SystemColors, re-themes live on UserPreferenceChanged, and supports Auto/Off/Custom alternating row color modes. - GridView template painting: Provides a virtual-mode grid where each row is rendered by a GridViewItemTemplate subclass with DarkMode-aware colors, brushes, and paint/measure overrides. - Data binding patterns: Shows standard BindingSource binding for WarpDataGridView and DataContext/SelectedItem binding for GridView, including strongly-typed WarpRowGridView<TRow> derivation. - Use Case: When building a WinForms settings or scanner UI that must follow the OS Light/Dark theme, use this Skill to pick the correct grid, configure AlternatingRowColorMode, and bind a typed row list without losing dark headers. ## Quick Start Ask the AI to create a WarpDataGridView bound to a BindingSource with automatic theme-aware alternating rows in a WinForms form.

Frequently Asked Questions about warptoolkit-data-grids

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I theme a DataGridView for Dark Mode in WinForms?▼

Use WarpDataGridView from WarpToolkit.WinForms.Specialized, which derives all cell and header colors from SystemColors and re-themes on UserPreferenceChanged. It sets EnableHeadersVisualStyles = false in its constructor, so do not re-enable visual styles or dark headers are lost.

What is the difference between GridView and WarpDataGridView in WarpToolkit?▼

GridView is a virtual-mode, single-column grid where each row is painted by a GridViewItemTemplate, while WarpDataGridView is a classic multi-column DataGridView with SystemColors theming. Use WarpDataGridView for standard columnar layouts and GridView for custom card-style rows.

How do I bind data to a WarpToolkit GridView?▼

Assign the bound list to GridView.DataContext, which is a new shadowed member, not the base DataGridView property. Set GridViewItemTemplate for rendering and handle SelectedItemChanged to react to selection.

Which NuGet packages are required for WarpToolkit grid controls?▼

You need WarpToolkit.WinForms for GridView and WarpToolkit.WinForms.Specialized for WarpDataGridView, at minimum version 0.9.324-preview.ge962db2903. Check referenced projects for contradicting package versions that need updating.

Why are my DataGridView headers not dark in Dark Mode?▼

Headers stay light when EnableHeadersVisualStyles is true, because header colors then come from OS visual styles instead of SystemColors. WarpDataGridView disables this in its constructor; avoid re-enabling it in derived code.

When should I not use the WarpToolkit GridView control?▼

Avoid GridView when you need arbitrary multi-column DataGridView layouts, since it is virtual-mode, single-column, and template-painted. For classic columns with standard binding, use WarpDataGridView instead.