/syncfusion-winforms:syncfusion-winforms-groupingfrom Syncfusion WinForms Controls
Implements the Syncfusion Grouping Engine for data grouping, sorting, filtering, and summarization in Windows Forms applications. This skill provides comprehensive data manipulation capabilities for managing and displaying tabular data from IList sources. Use when working with Syncfusion.Grouping namespace, Engine class, TableDescriptor, or advanced data organization features in Windows Forms.
Ships in Syncfusion WinForms Controls. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Use this skill when you need to:
The Grouping Engine uses balanced binary trees as the core data structure for efficient data operations. Key benefits include:
📄 Read: references/getting-started.md
📄 Read: references/data-binding.md
📄 Read: references/grouping-data.md
📄 Read: references/sorting.md
📄 Read: references/filtering.md
📄 Read: references/expressions-and-summaries.md
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();
}
// 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
}
// 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);
}
}
}
// 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}");
}
// 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();
| Property | Description |
|---|---|
Table | Gets the Table object containing records and groups |
TableDescriptor | Gets schema information and configuration |
SetSourceList(IList) | Sets the datasource for the engine |
| Property | Description |
|---|---|
GroupedColumns | Collection of properties to group by |
SortedColumns | Collection of properties to sort by |
RecordFilters | Collection of filter conditions |
Summaries | Collection of summary calculations |
ExpressionFields | Collection of calculated fields |
| Property | Description |
|---|---|
Records | All records in the table |
FilteredRecords | Records after applying filters |
TopLevelGroup | Root group for hierarchical access |
| Property | Description |
|---|---|
Groups | Child groups (for parent groups) |
Records | Records in this group (for terminal groups) |
Name | Group key/name |
GetSummary(string) | Retrieves summary value by name |
| Method | Description |
|---|---|
GetData() | Returns the underlying data object |
GetValue(string) | Gets property or expression value by name |
// 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)
);
// 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);
// 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");
// 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");
Groups may be empty after filtering. Always check Records.Count before iterating.
Property values must match the operation type:
= for numeric comparisonsLIKE or MATCH for string comparisonsWhen navigating groups recursively, check whether group.Groups or group.Records is populated. Only one will have items at each level.
[PropertyName]'value'{value1,value2} not {value1, value2}The Grouping Engine maintains internal data structures. Call Dispose() when done to release resources.
SetSourceList() before adding groups, sorts, or filtersTable.FilteredRecords instead of Table.Records when filters are activeGetData()What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-winforms113 skills in this plugin
/syncfusion-winforms-ai-assistviewGuide for implementing Syncfusion Windows Forms AI AssistView (SfAIAssistView) for building conversational AI interfaces in desktop applications. Use this when creating chat interfaces, AI assistants, or chatbots with Windows Forms. Supports OpenAI and Azure OpenAI integration, typing indicators, chat suggestions, message bubbles, custom views, input toolbar with attachments, response toolbar actions, and stop responding for interactive messaging experiences./syncfusion-winforms-autocompleteGuides implementation of the Syncfusion WinForms AutoComplete control for text input with auto-suggestion functionality. Use when users want to add autocomplete textboxes, implement auto-suggestion features, create search boxes with suggestions, enable URL/email autocomplete, or build type-ahead search functionality in Windows desktop applications. Covers data binding, customization, filtering, multi-column dropdowns, events, and all AutoComplete-specific features./syncfusion-winforms-autolabelGuides implementation of the Syncfusion WinForms AutoLabel control for automatic label positioning with form controls. Use when users want to add labels that automatically reposition when controls move, create form layouts with paired label-control units, implement complex form designs with FlowLayout, or ensure labels stay synchronized with their associated controls. Covers labeling controls, positioning, spacing, size settings, theming, and events.Other plugins' skills for the same job