Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计提醒

syncfusion-winforms-pivot-grid同步融合 winforms 枢轴网格

Agent Skill

syncfusion-winforms-pivot-grid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

214

周安装

9

GitHub Stars

公开资料未说明

下载量

75
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-winforms-pivot-grid(同步融合 winforms 枢轴网格)
来源仓库:https://github.com/syncfusion/winforms-ui-components-skills
仓库路径:skills/syncfusion-winforms-pivot-grid
安装命令:
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-pivot-grid
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-pivot-grid

简介

Syncfusion WinForms 数据透视网格控件,提供表格形式的多维数据汇总与展示功能。

  • 适合财务分析、销售统计等需要行列交叉计算与明细展开的场景。
  • 支持字段分组、排序、过滤及单元格格式化,便于用户交互式浏览数据细节。
  • 使用前需确保已集成 Syncfusion 控件套件,并验证其对目标 .NET Framework 版本的兼容性。
  • 注意内存占用问题,尤其在处理大规模数据集时应合理分页或启用虚拟化加载机制。

SKILL.md

Syncfusion Windows Forms Pivot Grid

The Syncfusion Windows Forms Pivot Grid control is a powerful, Excel-like pivot table component that enables interactive data analysis and cross-tabulated reporting. It transforms large datasets into meaningful summaries with drag-and-drop field organization, drill-down navigation, and advanced calculations.

When to Use This Skill

Use this skill when you need to:

  • Implement pivot table functionality in Windows Forms applications
  • Build business intelligence dashboards with data summarization
  • Create analytical reports with hierarchical grouping and calculations
  • Provide interactive data exploration with drill-down/drill-up navigation
  • Display cross-tabulated data from relational or OLAP sources
  • Enable users to dynamically reorganize data fields
  • Export pivot analysis to Excel, PDF, or Word formats
  • Apply conditional formatting based on cell values
  • Implement custom aggregations and calculated fields
  • Build financial reports, sales dashboards, or KPI tracking interfaces

Component Overview

Key Features:

  • Excel-Like Pivot Tables - Familiar interface for data pivoting and analysis
  • Interactive Schema Designer - Built-in Pivot Table Field List for drag-and-drop field management
  • Multiple Data Sources - Supports IList, IEnumerable, DataTable, DataView, OLAP
  • Drill-Down Navigation - Interactive expansion/collapse of hierarchical data
  • Advanced Calculations - Sum, Average, Count, Min, Max, custom expressions, running totals
  • Filtering & Sorting - Label filters, value filters, multi-level sorting
  • Grouping Bar - Visual field organization with drag-and-drop
  • Conditional Formatting - Style cells based on rules and conditions
  • Export Capabilities - Export to Excel, PDF, Word with formatting preserved
  • Cell Selection - Single, multiple, range selection modes
  • Editing Support - Modify cell values and update aggregations
  • Touch Support - Touch-friendly interactions for tablet devices
  • Localization - Multi-language support

Namespace: Syncfusion.Windows.Forms.PivotAnalysis

Assembly Dependencies:

  • Syncfusion.Grid.Windows.dll
  • Syncfusion.PivotAnalysis.Base.dll
  • Syncfusion.PivotAnalysis.Windows.dll
  • Syncfusion.Shared.Base.dll

NuGet Guidance:

  • Install the latest available version of Syncfusion.PivotTable.WinForms
  • Prefer NuGet package references over manual DLL references when possible
  • Verify package compatibility with the project target framework before upgrading

Important UI Setup Note:

  • Always create the control with new PivotGridControl(this.components); when working inside a WinForms form.
  • Always set Location and Size first, and ensure the control is larger than 300 x 300 before enabling ShowPivotTableFieldList.
  • Set ShowPivotTableFieldList = true only after the control has been sized correctly.
  • This prevents the field list UI from rendering in an unusable layout on small controls.

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Assembly deployment and required dependencies
  • Adding Pivot Grid via Visual Studio designer
  • Adding Pivot Grid via code-behind
  • License key registration
  • Basic control initialization
  • Initial configuration and setup

Data Management

📄 Read: references/data-binding.md

  • Binding to IEnumerable collections (List, ObservableCollection)
  • Binding to DataTable and DataView
  • Binding to OLAP data sources
  • Dynamic data updates and refresh
  • Data source requirements and best practices
  • Performance optimization for large datasets

Pivot Schema Designer

📄 Read: references/pivot-schema-designer.md

  • Enabling Pivot Table Field List
  • Drag-and-drop field organization
  • Field configuration and customization
  • Showing/hiding the schema designer
  • Programmatic field manipulation
  • Custom field templates

Rows, Columns, and Summaries

📄 Read: references/rows-columns-summaries.md

  • Configuring pivot rows (PivotRows collection)
  • Configuring pivot columns (PivotColumns collection)
  • Summary types (Sum, Average, Count, Min, Max, etc.)
  • Custom aggregation functions
  • Calculation information and formatting
  • Hierarchical structures and nesting
  • Total headers and subtotals

Filtering and Sorting

📄 Read: references/filtering-sorting.md

  • Filter types (Label filter, Value filter)
  • Interactive filtering with UI
  • Programmatic filter configuration
  • Filter conditions and predicates
  • Sort modes (Ascending, Descending, Custom)
  • Multi-level sorting strategies
  • Clearing and resetting filters

Grouping and Layouts

📄 Read: references/grouping-layouts.md

  • Grouping bar functionality and visibility
  • Layout types (Normal, Top summary, No summaries, etc.)
  • Drill-down and drill-up navigation
  • Expand/collapse behaviors and events
  • Custom layout configurations
  • Performance optimization for grouped data

Calculations and Editing

📄 Read: references/calculations-editing.md

  • Pivot calculations (Difference, % of, Running total, etc.)
  • Creating expression fields and custom formulas
  • Editing cell values interactively
  • Updating aggregated values programmatically
  • Validation rules and constraints
  • Calculated fields and custom aggregations

Cell Selection and Formatting

📄 Read: references/cell-selection-formatting.md

  • Cell selection modes (Single, Range, Multiple)
  • Selection events and handling
  • Conditional formatting rules and conditions
  • Format conditions based on cell values
  • Styling cells, rows, and columns
  • Custom cell appearance and templates

Data Exploration

📄 Read: references/data-exploration.md

  • Hyperlink cells for navigation
  • Drill-through functionality to view details
  • Data visualization techniques
  • Interactive navigation patterns
  • User interaction events
  • Tooltips and cell value display

Exporting and Printing

📄 Read: references/exporting-printing.md

  • Exporting to Excel (XLS, XLSX)
  • Exporting to PDF with formatting
  • Exporting to Word documents
  • Print configuration and preview
  • Custom export options and templates
  • Handling large exports efficiently

Advanced Features

📄 Read: references/advanced-features.md

  • Asynchronous data processing for large datasets
  • Serialization and deserialization of pivot state
  • Freezing row/column headers
  • Touch support for tablet devices
  • Localization and right-to-left (RTL) support
  • Custom cell templates and renderers
  • Performance tuning and optimization

Quick Start Example

Basic Pivot Grid with Data Binding

using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Syncfusion.Windows.Forms.PivotAnalysis;
using Syncfusion.PivotAnalysis.Base;
using Syncfusion.Windows.Forms;

namespace PivotGridDemo
{
    public partial class MainForm : Form
    {
        private PivotGridControl pivotGridControl1;

        public MainForm()
        {
            InitializeComponent();
            InitializePivotGrid();
        }

        private void InitializePivotGrid()
        {
            // Create pivot grid instance using the form components container
            pivotGridControl1 = new PivotGridControl(this.components);

            // Set size and position first
            pivotGridControl1.Location = new System.Drawing.Point(10, 10);
            pivotGridControl1.Size = new System.Drawing.Size(800, 500);
            pivotGridControl1.Anchor = AnchorStyles.Top | AnchorStyles.Left |
                                       AnchorStyles.Right | AnchorStyles.Bottom;

            // Apply visual style
            pivotGridControl1.GridVisualStyles = GridVisualStyles.Metro;

            // Bind data source
            pivotGridControl1.ItemSource = GetSalesData();

            // Configure pivot rows
            pivotGridControl1.PivotRows.Add(new PivotItem
            {
                FieldMappingName = "Product",
                TotalHeader = "Total"
            });
            pivotGridControl1.PivotRows.Add(new PivotItem
            {
                FieldMappingName = "Date",
                TotalHeader = "Total"
            });

            // Configure pivot columns
            pivotGridControl1.PivotColumns.Add(new PivotItem
            {
                FieldMappingName = "Country",
                TotalHeader = "Total"
            });

            // Configure calculations (summary values)
            pivotGridControl1.PivotCalculations.Add(new PivotComputationInfo
            {
                FieldName = "Amount",
                Format = "C",  // Currency format
                SummaryType = SummaryType.DoubleTotalSum
            });
            pivotGridControl1.PivotCalculations.Add(new PivotComputationInfo
            {
                FieldName = "Quantity",
                Format = "#,##0"
            });

            // Enable the field list only after the control has been sized correctly
            pivotGridControl1.ShowPivotTableFieldList = true;

            // Add to form
            this.Controls.Add(pivotGridControl1);
        }

        private List<ProductSales> GetSalesData()
        {
            // Sample data for demonstration
            return new List<ProductSales>
            {
                new ProductSales
                {
                    Product = "Bike",
                    Date = "FY 2023",
                    Country = "United States",
                    Quantity = 120,
                    Amount = 24000
                },
                new ProductSales
                {
                    Product = "Car",
                    Date = "FY 2023",
                    Country = "Canada",
                    Quantity = 45,
                    Amount = 135000
                },
                // Add more data...
            };
        }
    }

    public class ProductSales
    {
        public string Product { get; set; }
        public string Date { get; set; }
        public string Country { get; set; }
        public int Quantity { get; set; }
        public double Amount { get; set; }
    }
}

Common Patterns

Pattern 1: Enable Pivot Schema Designer

using Syncfusion.Windows.Forms.PivotAnalysis;

// Show the Pivot Table Field List (schema designer)
pivotGridControl1.ShowPivotTableFieldList = true;

// Users can now drag and drop fields to reorganize the pivot structure
// This provides Excel-like field management functionality

Pattern 2: Apply Conditional Formatting

using Syncfusion.Windows.Forms.PivotAnalysis;

// Add conditional formatting rule
PivotCellStyle style = new PivotCellStyle();
style.BackColor = Color.LightCoral;
style.ForeColor = Color.White;

ConditionalFormat condition = new ConditionalFormat();
condition.Conditions.Add(new PivotCondition
{
    ConditionType = PivotConditionType.LessThan,
    PredicateValue = 10000
});
condition.ApplyStyleInfo = style;

pivotGridControl1.TableControl.ConditionalFormats.Add(condition);

Pattern 3: Export to Excel

using Syncfusion.Windows.Forms.PivotAnalysis;

// Export pivot grid to Excel file
pivotGridControl1.ExportToExcel("PivotReport.xlsx");

// Export with options
ExcelExportOptions options = new ExcelExportOptions();
options.ExportMode = ExportMode.Value; // or ExportMode.Text
pivotGridControl1.ExportToExcel("PivotReport.xlsx", options);

Pattern 4: Handle Drill-Down Events

using Syncfusion.Windows.Forms.PivotAnalysis;

// Subscribe to drill-down event
pivotGridControl1.HyperlinkCellClick += PivotGridControl1_HyperlinkCellClick;

private void PivotGridControl1_HyperlinkCellClick(object sender,
    HyperlinkCellClickEventArgs e)
{
    // Get the clicked cell information
    string cellValue = e.Text;
    int rowIndex = e.RowIndex;
    int colIndex = e.ColIndex;

    // Show drill-through data or navigate to details
    // e.Cancel = true; // Cancel default drill behavior if needed
}

Pattern 5: Programmatic Filtering

using Syncfusion.Windows.Forms.PivotAnalysis;
using Syncfusion.PivotAnalysis.Base;

// Add filter to a specific field
PivotItem productRow = pivotGridControl1.PivotRows[0];
productRow.FilterItems = new List<string> { "Bike", "Car" };

// Or use filter expressions
FilterExpression filter = new FilterExpression();
filter.FieldName = "Product";
filter.FilterItems.Add("Bike");
filter.FilterItems.Add("Car");
pivotGridControl1.Filters.Add(filter);

// Refresh the pivot grid to apply filters
pivotGridControl1.TableControl.Refresh();

Pattern 6: Custom Aggregation

using Syncfusion.PivotAnalysis.Base;

// Create custom calculation with expression
PivotComputationInfo customCalc = new PivotComputationInfo
{
    FieldName = "Profit",
    CalculationType = CalculationType.Custom,
    Format = "C",
    SummaryType = SummaryType.Custom
};

// Define custom summary calculation
customCalc.CustomSummaryMethod = (items) =>
{
    double total = 0;
    foreach (var item in items)
    {
        total += (double)item.GetType().GetProperty("Amount").GetValue(item, null);
    }
    return total * 0.15; // Calculate 15% profit margin
};

pivotGridControl1.PivotCalculations.Add(customCalc);

Common Use Cases

  1. Sales Analysis Dashboard

- Track sales by product, region, and time period - Compare performance across multiple dimensions - Identify trends and patterns in sales data

  1. Financial Reporting

- Budget vs. actual analysis - Expense tracking and categorization - Revenue breakdown by department/product

  1. Inventory Management

- Stock levels by location and product category - Movement analysis and turnover rates - Reorder point calculations

  1. Business Intelligence

- KPI dashboards with drill-down capabilities - Cross-functional data analysis - Executive summary reports

  1. Customer Analytics

- Customer segmentation and profiling - Purchase pattern analysis - Retention and churn metrics

  1. Operational Reports

- Production efficiency tracking - Resource utilization analysis - Quality metrics and defect tracking

Key Props and Configuration

Essential Properties:

  • ItemSource - Data source for the pivot grid (IEnumerable, DataTable, etc.)
  • PivotRows - Collection of fields displayed as row headers
  • PivotColumns - Collection of fields displayed as column headers
  • PivotCalculations - Summary calculations (Sum, Average, Count, etc.)
  • ShowPivotTableFieldList - Enable/disable the schema designer
  • GridVisualStyles - Apply visual themes (Metro, Office2016, etc.)

Customization Properties:

  • EnableDrillDown - Allow users to expand/collapse grouped data
  • ShowGrandTotals - Display grand total rows and columns
  • ShowSubTotals - Display subtotal rows and columns
  • AllowSelection - Enable cell selection
  • AllowFiltering - Enable filtering UI
  • AllowSorting - Enable sorting functionality

Refer to the reference files above for detailed documentation on all properties, methods, and events.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.91%
按下载量换算25

Claude

30.4%
按下载量换算23

Cursor

17.6%
按下载量换算13

Gemini CLI

10.49%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills