devexpress-winforms-pivot-grid
Installation
SKILL.md
DevExpress WinForms Pivot Grid (PivotGridControl)
PivotGridControl (namespace DevExpress.XtraPivotGrid) is a cross-tabulation control that summarizes bound data across row and column dimensions — like an Excel PivotTable. Fields are assigned to four areas (Row, Column, Data, Filter); the control computes summaries at every intersection.
Before You Start — Ask the Developer
If the host agent has a structured question-asking tool available, use it to ask these questions one at a time with clear options — for example, Claude Code's AskUserQuestion tool or GitHub Copilot's askQuestions tool. If no such tool is available, ask the questions directly in the chat response before generating code.
- Data source? In-memory
List<T>/DataTable, EF/EF Core, an OLAP cube (SSAS), or an Excel file? This decides the binding approach (see the Decision Guide). - Which fields go where? Which columns become Row / Column / Data / Filter fields, and which need calculated or grouped bindings (
ExpressionDataBinding,GroupInterval)? - Summaries? Default
Sum, or otherSummaryType/ custom summaries? Any % of total / running totals? - Layout & interactivity? Should end users rearrange fields (Customization Form), or is the layout fixed in code?
- Formatting? Cell number formats, conditional formatting (
FormatRules: bars/scales/icons), and appearance/skin requirements? - Scale & responsiveness? Large in-memory data →
Optimizedengine +UseAsyncMode. Large database table → server mode (EntityServerModeSource) so aggregation runs in SQL. - Persistence? Save/restore the layout (
SaveLayoutToXml/RestoreLayoutFromXml)?