Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

syncfusion-winforms-multicolumn-treeview同步融合 winforms 多列树视图

Agent Skill

syncfusion-winforms-multicolumn-treeview 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

685

周安装

28

GitHub Stars

公开资料未说明

下载量

222
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

树形结构与多列展示结合的复合控件,适合层级化复杂数据浏览。

  • 典型应用于组织结构图、文件系统树或分类商品目录展示。
  • 技能封装了展开/折叠动画与节点过滤功能,简化高级交互实现。
  • 深嵌套层级建议限制最大深度,防止递归渲染导致栈溢出。
  • 导出为 Excel 等格式时需保留父子关系标识,便于外部系统解析。

SKILL.md

Implementing MultiColumn TreeView

The MultiColumnTreeView is an advanced treeview control for Windows Forms that displays hierarchical data with multiple columns. This control combines the tree structure visualization with additional data columns, making it ideal for file explorers, organizational charts, and data browsers where you need to show both hierarchy and related information.

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical data with multiple columns of information
  • Build file explorers or folder browsers with metadata columns
  • Create organizational charts with employee details
  • Show product catalogs with hierarchical categories and specifications
  • Implement data browsers with parent-child relationships
  • Add interactive features like checkboxes, option buttons, or inline editing
  • Load large datasets on demand for better performance
  • Sort and filter hierarchical data dynamically
  • Customize appearance with styles, colors, and themes
  • Bind to XML data for easy import/export

Component Overview

The MultiColumnTreeView provides:

Core Components:

  • TreeNodeAdv - Individual nodes with text, images, and subitems
  • TreeColumnAdv - Column definitions with headers and styling
  • TreeNodeAdvSubItem - Additional column data for each node

Key Capabilities:

  • Multiple columns with customizable headers
  • Hierarchical node structure with unlimited depth
  • Interactive elements (checkboxes, option buttons)
  • Multiple selection modes
  • Sorting and filtering
  • Load on demand for performance
  • Flexible style architecture
  • XML data binding
  • Event-driven interactions

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and assembly deployment
  • Adding MultiColumnTreeView via designer
  • Adding MultiColumnTreeView via code
  • Creating columns (TreeColumnAdv)
  • Adding nodes and child nodes
  • Adding subitems for additional columns
  • First working example

Nodes and Columns Management

📄 Read: references/nodes-and-columns.md

  • TreeNodeAdv properties and features
  • TreeColumnAdv configuration
  • Adding/removing nodes dynamically
  • Building hierarchical structures
  • SubItems and multi-column data
  • Node collection operations
  • Column sizing and auto-sizing

Node Features

📄 Read: references/node-features.md

  • CheckBoxes and InteractiveCheckBoxes
  • OptionButtons (radio button selection)
  • ToolTips and HelpText
  • Plus/Minus expansion symbols
  • Root lines and connecting lines
  • Custom controls in nodes
  • Primitives (LabelPrimitive, ImagePrimitive, CheckBoxPrimitive)
  • Multiline node text

Selection and Editing

📄 Read: references/selection-and-editing.md

  • SelectionMode (Single, MultiSelectSameLevel, MultiSelectAll)
  • SelectedNode and SelectedNodes properties
  • ActiveNode management
  • Mouse-based selection (drag selection)
  • Keyboard search functionality
  • Label editing (LabelEdit property)
  • Node editing events

Data Binding

📄 Read: references/data-binding.md

  • Loading data from XML files
  • Saving tree structure to XML
  • XML node mapping
  • Data binding patterns
  • Dynamic node population
  • Export and import operations

Sorting and Filtering

📄 Read: references/sorting-and-filtering.md

  • Sort method and SortOrder
  • SortType (Checkbox, Tag, Text)
  • SortWithChildNode property
  • CompareOptions for text comparison
  • Filter levels (Root, All, Extended)
  • Creating filter delegates
  • RefreshFilter method
  • Clearing filters

Appearance Customization

📄 Read: references/appearance.md

  • Border styles (2D and 3D borders)
  • Color customization (background, foreground, lines)
  • Header customization
  • BaseStyles for nodes and columns
  • Selected node appearance
  • SubItem styling
  • Visual styles (Office2016Colorful, White, Black, DarkGray)
  • Image lists (LeftImage, RightImage, StateImage)

Performance Optimization

📄 Read: references/performance.md

  • SuspendExpandRecalculate property
  • BeginUpdate/EndUpdate pattern
  • Load on demand implementation
  • Large dataset handling
  • Memory management tips
  • Performance best practices

Events

📄 Read: references/events.md

  • Node selection events
  • Expand/collapse events
  • Editing events (BeforeEdit, AfterEdit)
  • Mouse and keyboard events
  • Custom event handling patterns
  • Event subscription examples

Troubleshooting

📄 Read: references/troubleshooting.md

  • Common display issues
  • Performance optimization
  • Checkbox and selection problems
  • Sorting and filtering issues
  • Event and data binding problems
  • General best practices

Quick Start Example

Here's a minimal example showing a MultiColumnTreeView with countries and capitals:

using System;
using System.Windows.Forms;
using Syncfusion.Windows.Forms.Tools.MultiColumnTreeView;

public class MultiColumnTreeViewExample : Form
{
    private MultiColumnTreeView multiColumnTreeView1;

    public MultiColumnTreeViewExample()
    {
        InitializeForm();
        SetupMultiColumnTreeView();
        PopulateData();
    }

    private void InitializeForm()
    {
        this.Text = "MultiColumnTreeView Example";
        this.Size = new System.Drawing.Size(600, 400);
    }

    private void SetupMultiColumnTreeView()
    {
        // Create control
        multiColumnTreeView1 = new MultiColumnTreeView();
        multiColumnTreeView1.Dock = DockStyle.Fill;

        // Add columns
        TreeColumnAdv countryColumn = new TreeColumnAdv();
        countryColumn.Text = "Country";
        countryColumn.Width = 200;

        TreeColumnAdv capitalColumn = new TreeColumnAdv();
        capitalColumn.Text = "Capital";
        capitalColumn.Width = 150;

        multiColumnTreeView1.Columns.AddRange(
            new TreeColumnAdv[] { countryColumn, capitalColumn });

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

    private void PopulateData()
    {
        // Create parent nodes
        TreeNodeAdv asiaNode = new TreeNodeAdv();
        asiaNode.Text = "Asia";

        TreeNodeAdv europeNode = new TreeNodeAdv();
        europeNode.Text = "Europe";

        // Create child nodes with subitems
        TreeNodeAdv indiaNode = new TreeNodeAdv();
        indiaNode.Text = "India";
        TreeNodeAdvSubItem delhiSubItem = new TreeNodeAdvSubItem();
        delhiSubItem.Text = "New Delhi";
        indiaNode.SubItems.Add(delhiSubItem);

        TreeNodeAdv chinaNode = new TreeNodeAdv();
        chinaNode.Text = "China";
        TreeNodeAdvSubItem beijingSubItem = new TreeNodeAdvSubItem();
        beijingSubItem.Text = "Beijing";
        chinaNode.SubItems.Add(beijingSubItem);

        TreeNodeAdv ukNode = new TreeNodeAdv();
        ukNode.Text = "United Kingdom";
        TreeNodeAdvSubItem londonSubItem = new TreeNodeAdvSubItem();
        londonSubItem.Text = "London";
        ukNode.SubItems.Add(londonSubItem);

        // Build hierarchy
        asiaNode.Nodes.AddRange(new TreeNodeAdv[] { indiaNode, chinaNode });
        europeNode.Nodes.Add(ukNode);

        multiColumnTreeView1.Nodes.AddRange(
            new TreeNodeAdv[] { asiaNode, europeNode });
    }

    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.Run(new MultiColumnTreeViewExample());
    }
}

Common Patterns

Pattern 1: Adding Nodes with Multiple Columns

// Create node for first column
TreeNodeAdv employeeNode = new TreeNodeAdv();
employeeNode.Text = "John Doe";

// Add subitems for additional columns
TreeNodeAdvSubItem departmentSubItem = new TreeNodeAdvSubItem();
departmentSubItem.Text = "Engineering";

TreeNodeAdvSubItem salarySubItem = new TreeNodeAdvSubItem();
salarySubItem.Text = "$85,000";

employeeNode.SubItems.Add(departmentSubItem);
employeeNode.SubItems.Add(salarySubItem);

multiColumnTreeView1.Nodes.Add(employeeNode);

Pattern 2: Interactive Nodes with Checkboxes

// Enable checkboxes for all nodes
multiColumnTreeView1.ShowCheckBoxes = true;
multiColumnTreeView1.InteractiveCheckBoxes = true;

// Or for individual nodes
TreeNodeAdv node = new TreeNodeAdv();
node.Text = "Select Me";
node.ShowCheckBox = true;
node.InteractiveCheckBox = true; // Parent reflects child states

Pattern 3: Sorting Tree Data

// Sort by text in ascending order
multiColumnTreeView1.Nodes.Sort(SortOrder.Ascending);

// Sort with child nodes
multiColumnTreeView1.Nodes[0].SortOrder = SortOrder.Descending;

Pattern 4: Filtering Nodes

// Define filter delegate
public bool FilterNodes(object o)
{
    var node = o as TreeNodeAdv;
    if (node.SubItems.Count > 0)
    {
        int value = int.Parse(node.SubItems[0].Text);
        return value > 50000; // Filter by criteria
    }
    return false;
}

// Apply filter
multiColumnTreeView1.FilterLevel = FilterLevel.Extended;
multiColumnTreeView1.Filter = FilterNodes;
multiColumnTreeView1.RefreshFilter();

Pattern 5: Handling Selection Events

// Subscribe to node selected event
multiColumnTreeView1.NodeSelected += (sender, e) =>
{
    if (multiColumnTreeView1.SelectedNode != null)
    {
        string nodeText = multiColumnTreeView1.SelectedNode.Text;
        MessageBox.Show($"Selected: {nodeText}");
    }
};

Key Properties and Methods

Essential Properties

Control-Level:

  • Columns - Collection of TreeColumnAdv objects
  • Nodes - Root-level TreeNodeAdv collection
  • SelectedNode - Currently selected node (single selection)
  • SelectedNodes - Collection of selected nodes (multi-selection)
  • ActiveNode - Node with focus
  • SelectionMode - Single, MultiSelectSameLevel, MultiSelectAll
  • ShowCheckBoxes - Display checkboxes on all nodes
  • ShowOptionButtons - Display option buttons on all nodes
  • ShowLines - Show connecting lines between nodes
  • ShowRootLines - Show lines between root nodes
  • ShowPlusMinus - Show expand/collapse symbols
  • Style - Visual theme (Office2016Colorful, White, Black, DarkGray)
  • FilterLevel - Filter scope (Root, All, Extended)
  • Filter - Filter delegate function

Node Properties (TreeNodeAdv):

  • Text - Node text content
  • SubItems - Collection of TreeNodeAdvSubItem objects
  • Nodes - Child nodes collection
  • Checked - Checkbox state
  • Optioned - Option button state
  • Expanded - Expand/collapse state
  • ShowCheckBox - Show checkbox for this node
  • ShowOptionButton - Show option button for this node
  • LeftImageIndices - Left image indices
  • RightImageIndices - Right image indices
  • HelpText - Tooltip text

Column Properties (TreeColumnAdv):

  • Text - Column header text
  • Width - Column width in pixels
  • Background - Header background brush
  • TextColor - Header text color

Essential Methods

Control Methods:

  • BeginUpdate() - Suspend visual updates for performance
  • EndUpdate() - Resume visual updates
  • ExpandAll() - Expand all nodes
  • CollapseAll() - Collapse all nodes
  • RefreshFilter() - Reapply current filter
  • Sort() - Sort nodes

Node Methods:

  • Expand() - Expand node
  • Collapse() - Collapse node
  • EnsureVisible() - Scroll node into view

Common Use Cases

Use Case 1: File Explorer

Display file system hierarchy with file names, sizes, dates, and types across multiple columns. Use icons for file types and implement lazy loading for large directory structures.

Use Case 2: Organizational Chart

Show company structure with employee names, titles, departments, and contact information. Use checkboxes for selection and option buttons for primary contact designation.

Use Case 3: Product Catalog

Display product categories and subcategories with pricing, stock, and description columns. Implement filtering by price range or stock availability.

Use Case 4: Project Task Manager

Show project tasks in hierarchical structure with task names, assignees, due dates, and status. Use checkboxes for task completion tracking.

Use Case 5: Database Schema Viewer

Display database tables, views, and columns in tree format with data types, constraints, and descriptions in additional columns.

Assembly Requirements

Required Assemblies:

  • Syncfusion.Grid.Base
  • Syncfusion.Grid.Windows
  • Syncfusion.Shared.Base
  • Syncfusion.Shared.Windows
  • Syncfusion.Tools.Base
  • Syncfusion.Tools.Windows

Installation via NuGet:

Install-Package Syncfusion.Tools.Windows

Best Practices

  1. Use BeginUpdate/EndUpdate when adding many nodes to improve performance
  2. Enable load on demand for large datasets to reduce initial load time
  3. Set SuspendExpandRecalculate to true for faster node expansion with many nodes
  4. Use appropriate selection mode based on user requirements
  5. Provide clear column headers to make data relationships obvious
  6. Handle events to respond to user interactions appropriately
  7. Apply consistent styling through BaseStyles for professional appearance
  8. Test with large datasets to ensure performance meets requirements
  9. Use XML binding for easy data persistence
  10. Clear filters when no longer needed to show all data

Related Components

  • TreeView - Single-column tree control
  • DataGrid - Flat grid without hierarchy
  • ListView - List with columns but no tree structure

For detailed troubleshooting, see references/troubleshooting.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.34%
按下载量换算76

Claude

27.71%
按下载量换算62

Cursor

18.39%
按下载量换算41

Gemini CLI

10.05%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills