Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-grouping同步融合 winform 分组

Agent Skill

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

总安装

242

周安装

10

GitHub Stars

1

下载量

79
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

实现数据项按类别自动归类的核心分组引擎,支撑动态内容聚合。

  • 常见于电商分类浏览、文件管理器或多层级目录导航等场景。
  • 通过技能接口可便捷注入分组规则,无需深入理解底层算法细节。
  • 需留意分组键的唯一性与稳定性,防止因数据变动引起视图抖动。
  • 大规模数据集建议启用延迟加载机制减轻初始渲染压力。syncfusion-winforms-grouping 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion Grouping Engine

Essential Grouping is a 100% native.NET data management framework that provides sorting, grouping, filtering, and summarization capabilities for tabular data without dependencies on any particular UI component. It is designed for use in Windows Forms applications.

When to Use This Skill

Use this skill when you need to:

  • Sort data by one or multiple properties with standard or custom comparison logic
  • Group data hierarchically by properties to create nested groups
  • Filter records based on complex expressions with algebraic and logical operators
  • Summarize data with aggregate calculations (sum, average, min, max, count)
  • Add calculated fields using expression-based properties
  • Manage tabular data from any IList source (ArrayList, List, BindingList, etc.)
  • Build data-driven applications requiring flexible data organization
  • Display grouped/summarized information without UI control dependencies

Component Overview

The Grouping Engine uses balanced binary trees as the core data structure for efficient data operations. Key benefits include:

  • O(Log n) operations for insert, remove, and move operations
  • Cached parent information for quick position and summary lookups
  • Recursive grouping supporting multiple levels of nested groups
  • Expression support for calculated fields and filter conditions
  • Platform support optimized for Windows Forms applications

Documentation and Navigation Guide

Getting Started and Installation

📄 Read: references/getting-started.md

  • Installation locations and deployment requirements
  • Creating Windows Forms applications
  • Required assembly references and dependencies
  • Setting up Copy Local properties for deployment
  • Deployment scenarios and GAC options
  • DLL requirements for Windows Forms deployment

Data Binding Fundamentals

📄 Read: references/data-binding.md

  • Creating custom objects with public properties
  • Building ArrayList and IList datasources
  • Setting datasource with Engine.SetSourceList()
  • Iterating through Table.Records collection
  • Accessing record data with Record.GetData()
  • Understanding the Engine and Table relationship

Grouping Data

📄 Read: references/grouping-data.md

  • Using TableDescriptor.GroupedColumns collection
  • Accessing groups via Table.TopLevelGroup
  • Recursive navigation through Groups and Records
  • Retrieving specific groups by key value
  • Understanding group hierarchy patterns
  • Side effects of grouping (automatic sorting)
  • Displaying records within groups

Sorting Data

📄 Read: references/sorting.md

  • Adding columns to TableDescriptor.SortedColumns
  • Specifying sort direction (Ascending/Descending)
  • Implementing custom sorting with IComparer interface
  • Using SortColumnDescriptor.Comparer property
  • Numerical vs string sorting strategies
  • Multi-column sorting scenarios

Filtering Records

📄 Read: references/filtering.md

  • Creating RecordFilterDescriptor with expressions
  • Using Table.FilteredRecords collection
  • Filter expression syntax and operators
  • Logical operators (AND, OR, NOT)
  • Comparison operators (=, <, >, <=, >=, <>)
  • String operators (LIKE, MATCH, IN, BETWEEN)
  • Building complex multi-condition filters
  • Clearing and updating filter collections

Expressions and Summaries

📄 Read: references/expressions-and-summaries.md

  • Creating ExpressionFieldDescriptor for calculated fields
  • Algebraic expressions with property names
  • Adding to TableDescriptor.ExpressionFields collection
  • Retrieving expression values with Record.GetValue()
  • Creating SummaryDescriptor for aggregations
  • Summary types (Int32Aggregate, DoubleAggregate, etc.)
  • Getting summary values per group with GetSummary()
  • Algebra operators and evaluation precedence
  • Custom function support and limitations

Quick Start Example

using System;
using System.Collections;
using Syncfusion.Grouping;

// Define a custom data object
public class SalesRecord
{
    public string Product { get; set; }
    public string Category { get; set; }
    public int Quantity { get; set; }
    public decimal Price { get; set; }

    public SalesRecord(string product, string category, int qty, decimal price)
    {
        Product = product;
        Category = category;
        Quantity = qty;
        Price = price;
    }
}

// Create and populate datasource
ArrayList salesData = new ArrayList();
salesData.Add(new SalesRecord("Laptop", "Electronics", 5, 1200.00m));
salesData.Add(new SalesRecord("Mouse", "Electronics", 25, 15.00m));
salesData.Add(new SalesRecord("Desk", "Furniture", 10, 350.00m));
salesData.Add(new SalesRecord("Chair", "Furniture", 20, 150.00m));

// Create Grouping Engine and set datasource
Engine groupingEngine = new Engine();
groupingEngine.SetSourceList(salesData);

// Group by Category
groupingEngine.TableDescriptor.GroupedColumns.Add("Category");

// Add summary for Quantity
SummaryDescriptor quantitySummary = new SummaryDescriptor(
    "TotalQuantity",
    "Quantity",
    SummaryType.Int32Aggregate
);
groupingEngine.TableDescriptor.Summaries.Add(quantitySummary);

// Iterate through groups and display summaries
foreach (Group group in groupingEngine.Table.TopLevelGroup.Groups)
{
    Console.WriteLine($"Category: {group.Name}");

    // Get summary value
    var summary = group.GetSummary("TotalQuantity") as Int32AggregateSummary;
    Console.WriteLine($"Total Items: {summary.Sum}");

    // Display records in this group
    foreach (Record rec in group.Records)
    {
        SalesRecord sale = rec.GetData() as SalesRecord;
        Console.WriteLine($"  {sale.Product}: {sale.Quantity} @ ${sale.Price}");
    }
    Console.WriteLine();
}

Common Patterns

Pattern 1: Filter-Then-Group Workflow

// 1. Create engine and set datasource
Engine engine = new Engine();
engine.SetSourceList(dataList);

// 2. Apply filter first
RecordFilterDescriptor filter = new RecordFilterDescriptor("[Price] > 100");
engine.TableDescriptor.RecordFilters.Add(filter);

// 3. Then group filtered results
engine.TableDescriptor.GroupedColumns.Add("Category");

// 4. Access filtered and grouped data
foreach (Group group in engine.Table.TopLevelGroup.Groups)
{
    // Process each group
}

Pattern 2: Multi-Level Grouping

// Group by multiple columns for nested hierarchy
engine.TableDescriptor.GroupedColumns.Add("Region");
engine.TableDescriptor.GroupedColumns.Add("Category");
engine.TableDescriptor.GroupedColumns.Add("SubCategory");

// Navigate nested groups recursively
void ProcessGroup(Group group, int level)
{
    if (group.Records != null && group.Records.Count > 0)
    {
        // Terminal group with records
        foreach (Record rec in group.Records)
        {
            // Process record
        }
    }
    else if (group.Groups != null && group.Groups.Count > 0)
    {
        // Parent group with sub-groups
        foreach (Group subGroup in group.Groups)
        {
            ProcessGroup(subGroup, level + 1);
        }
    }
}

Pattern 3: Dynamic Expression Fields

// Add calculated column for total value
ExpressionFieldDescriptor totalExpr = new ExpressionFieldDescriptor(
    "TotalValue",
    "[Quantity] * [Price]"
);
engine.TableDescriptor.ExpressionFields.Add(totalExpr);

// Use expression in filter
RecordFilterDescriptor highValueFilter = new RecordFilterDescriptor(
    "[TotalValue] > 1000"
);
engine.TableDescriptor.RecordFilters.Add(highValueFilter);

// Retrieve expression values
foreach (Record rec in engine.Table.FilteredRecords)
{
    decimal total = (decimal)rec.GetValue("TotalValue");
    Console.WriteLine($"Total: ${total}");
}

Pattern 4: Custom Sort with IComparer

// Implement custom comparer
public class CustomComparer : IComparer
{
    public int Compare(object x, object y)
    {
        // Custom comparison logic
        string str1 = x.ToString();
        string str2 = y.ToString();

        // Example: Sort by length first, then alphabetically
        int lengthCompare = str1.Length.CompareTo(str2.Length);
        return lengthCompare != 0 ? lengthCompare : str1.CompareTo(str2);
    }
}

// Apply custom sort
engine.TableDescriptor.SortedColumns.Add("Product");
engine.TableDescriptor.SortedColumns["Product"].Comparer = new CustomComparer();

Key Properties and Collections

Engine Class

PropertyDescription
TableGets the Table object containing records and groups
TableDescriptorGets schema information and configuration
SetSourceList(IList)Sets the datasource for the engine

TableDescriptor Properties

PropertyDescription
GroupedColumnsCollection of properties to group by
SortedColumnsCollection of properties to sort by
RecordFiltersCollection of filter conditions
SummariesCollection of summary calculations
ExpressionFieldsCollection of calculated fields
ColumnsCollection of column descriptors (schema info)

Table Properties

PropertyDescription
RecordsAll records in the table
FilteredRecordsRecords after applying filters
TopLevelGroupRoot group for hierarchical access

Group Class

PropertyDescription
GroupsChild groups (for parent groups)
RecordsRecords in this group (for terminal groups)
NameGroup key/name
GetSummary(string)Retrieves summary value by name

Record Class

MethodDescription
GetData()Returns the underlying data object
GetValue(string)Gets property or expression value by name

Common Use Cases

Use Case 1: Sales Report by Region and Product

// Group sales by region, then product category
engine.TableDescriptor.GroupedColumns.Add("Region");
engine.TableDescriptor.GroupedColumns.Add("ProductCategory");

// Add sales summaries
engine.TableDescriptor.Summaries.Add(
    new SummaryDescriptor("TotalSales", "SalesAmount", SummaryType.DoubleAggregate)
);
engine.TableDescriptor.Summaries.Add(
    new SummaryDescriptor("OrderCount", "OrderID", SummaryType.Count)
);

Use Case 2: Inventory Filtering for Low Stock

// Filter for items below reorder level
RecordFilterDescriptor lowStock = new RecordFilterDescriptor(
    "[StockLevel] < [ReorderLevel] AND [Active] = 1"
);
engine.TableDescriptor.RecordFilters.Add(lowStock);

// Sort by urgency (stock level ascending)
engine.TableDescriptor.SortedColumns.Add("StockLevel", ListSortDirection.Ascending);

Use Case 3: Customer Analysis with Calculated Fields

// Add expression for customer value
ExpressionFieldDescriptor customerValue = new ExpressionFieldDescriptor(
    "CustomerValue",
    "[TotalOrders] * [AverageOrderAmount]"
);
engine.TableDescriptor.ExpressionFields.Add(customerValue);

// Filter for high-value customers
RecordFilterDescriptor premiumCustomers = new RecordFilterDescriptor(
    "[CustomerValue] > 10000"
);
engine.TableDescriptor.RecordFilters.Add(premiumCustomers);

// Group by customer tier
engine.TableDescriptor.GroupedColumns.Add("Tier");

Use Case 4: Time-Based Data Analysis

// Filter for date range using BETWEEN operator
RecordFilterDescriptor dateRange = new RecordFilterDescriptor(
    "[OrderDate] BETWEEN {1/1/2024, 12/31/2024}"
);
engine.TableDescriptor.RecordFilters.Add(dateRange);

// Group by month (requires calculated field)
ExpressionFieldDescriptor monthField = new ExpressionFieldDescriptor(
    "OrderMonth",
    "Month([OrderDate])"
);
engine.TableDescriptor.ExpressionFields.Add(monthField);
engine.TableDescriptor.GroupedColumns.Add("OrderMonth");

Edge Cases and Troubleshooting

Empty Groups

Groups may be empty after filtering. Always check Records.Count before iterating.

Type Mismatches in Expressions

Property values must match the operation type:

  • Use = for numeric comparisons
  • Use LIKE or MATCH for string comparisons
  • Use appropriate summary types (Int32Aggregate vs DoubleAggregate)

Recursive Navigation

When navigating groups recursively, check whether group.Groups or group.Records is populated. Only one will have items at each level.

Filter Expression Syntax

  • Property names must be enclosed in square brackets: [PropertyName]
  • String literals must be in single quotes: 'value'
  • Spaces in IN operator lists are significant: {value1,value2} not {value1, value2}

Memory Management

The Grouping Engine maintains internal data structures. Call Dispose() when done to release resources.

Best Practices

  1. Set datasource before configuration: Call SetSourceList() before adding groups, sorts, or filters
  2. Use FilteredRecords for filtered data: Access Table.FilteredRecords instead of Table.Records when filters are active
  3. Choose appropriate summary types: Match summary type to property data type (Int32, Double, Boolean, etc.)
  4. Optimize expressions: Complex expressions impact performance; keep them simple when possible
  5. Handle null values: Check for null when accessing record data with GetData()
  6. Dispose properly: Dispose of Engine objects when no longer needed
  7. Test filter expressions: Validate filter syntax before deployment to avoid runtime errors

Platform-Specific Notes

Windows Forms

  • Grouping Engine works standalone or with GridGroupingControl
  • No UI dependencies required
  • Optimized for desktop application scenarios

Next Steps

  1. Read getting-started.md for installation and setup
  2. Review data-binding.md to understand datasource requirements
  3. Explore specific features in respective reference files based on your needs
  4. Review code examples in each reference for implementation details

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.48%
按下载量换算25

Claude

31.82%
按下载量换算25

Cursor

17.27%
按下载量换算14

Gemini CLI

10.11%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/syncfusion/winforms-ui-components-skills --skill syncfusion-winforms-grouping 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills