/syncfusion-winforms:syncfusion-winforms-treeviewfrom Syncfusion WinForms Controls
Implements Syncfusion TreeViewAdv control for Windows Forms applications to display hierarchical tree structures, file explorers, organization charts, and nested data. Use this when working with hierarchical data, parent-child relationships, expandable nodes, file browser interfaces, or folder structures. The skill covers data binding, drag-and-drop, node customization, editing capabilities, and performance optimization for tree structures in WinForms.
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.
Use this skill ALWAYS and immediately when:
The Syncfusion TreeViewAdv control displays hierarchical data in a tree structure with advanced features beyond the standard Windows Forms TreeView. It provides comprehensive support for data binding, drag-and-drop, virtualization, editing, and extensive customization options.
📄 Read: references/getting-started.md
📄 Read: references/data-binding.md
📄 Read: references/node-customization.md
📄 Read: references/appearance-styling.md
📄 Read: references/drag-and-drop.md
📄 Read: references/editing-operations.md
📄 Read: references/sorting.md
📄 Read: references/load-on-demand.md
📄 Read: references/performance-optimization.md
📄 Read: references/advanced-features.md
📄 Read: references/scrollbar-customization.md
using Syncfusion.Windows.Forms.Tools;
namespace WinFormsTreeApp
{
public partial class Form1 : Form
{
private TreeViewAdv treeViewAdv1;
public Form1()
{
InitializeComponent();
InitializeTreeView();
}
private void InitializeTreeView()
{
// Create TreeViewAdv instance
treeViewAdv1 = new TreeViewAdv();
treeViewAdv1.Location = new System.Drawing.Point(20, 20);
treeViewAdv1.Size = new System.Drawing.Size(300, 400);
// Create nodes
TreeNodeAdv parentNode1 = new TreeNodeAdv("Parent 1");
TreeNodeAdv childNode1 = new TreeNodeAdv("Child 1");
TreeNodeAdv childNode2 = new TreeNodeAdv("Child 2");
// Build hierarchy
parentNode1.Nodes.AddRange(new TreeNodeAdv[] { childNode1, childNode2 });
TreeNodeAdv parentNode2 = new TreeNodeAdv("Parent 2");
TreeNodeAdv childNode3 = new TreeNodeAdv("Child 3");
parentNode2.Nodes.Add(childNode3);
// Add root nodes
treeViewAdv1.Nodes.AddRange(new TreeNodeAdv[] { parentNode1, parentNode2 });
// Customize appearance
treeViewAdv1.ShowLines = true;
treeViewAdv1.ShowRootLines = true;
treeViewAdv1.ShowPlusMinus = true;
// Add to form
this.Controls.Add(treeViewAdv1);
}
}
}
// Self-referencing data binding
DataTable dataTable = CreateHierarchicalData();
treeViewAdv1.DataSource = dataTable;
treeViewAdv1.DisplayMember = "Name";
treeViewAdv1.ValueMember = "ID";
treeViewAdv1.ParentMember = "ParentID";
treeViewAdv1.ChildMember = "ID";
treeViewAdv1.SelfRelationRootValue = DBNull.Value;
When: Building tree structure dynamically from code
// Create nodes with constructor
TreeNodeAdv node = new TreeNodeAdv("Node Text");
// Set properties
node.Text = "Updated Text";
node.ShowCheckBox = true;
node.Tag = customDataObject;
// Add children
node.Nodes.Add(new TreeNodeAdv("Child"));
// Add to tree
treeViewAdv1.Nodes.Add(node);
When: Binding to single table with parent-child relationships
// Setup data source
treeViewAdv1.DataSource = employeeTable;
treeViewAdv1.DisplayMember = "EmployeeName";
treeViewAdv1.ValueMember = "EmployeeID";
treeViewAdv1.ParentMember = "ManagerID";
treeViewAdv1.ChildMember = "EmployeeID";
treeViewAdv1.SelfRelationRootValue = DBNull.Value; // Root nodes have null parent
When: Working with large datasets, need lazy loading
// Enable load on demand
treeViewAdv1.LoadOnDemand = true;
// Handle BeforeExpand to load children
treeViewAdv1.BeforeExpand += (sender, e) =>
{
TreeNodeAdv node = e.Node;
// Check if children already loaded
if (node.Nodes.Count == 0)
{
// Load children from data source
var children = LoadChildNodesFromDatabase(node.Tag);
foreach (var child in children)
{
TreeNodeAdv childNode = new TreeNodeAdv(child.Name);
childNode.Tag = child;
node.Nodes.Add(childNode);
}
}
};
When: Users need to reorder nodes via drag-drop
// Enable drag-drop
treeViewAdv1.AllowDrop = true;
// Handle ItemDrag
treeViewAdv1.ItemDrag += (sender, e) =>
{
if (e.Item is TreeNodeAdv node)
{
treeViewAdv1.DoDragDrop(node, DragDropEffects.Move);
}
};
// Handle DragDrop
treeViewAdv1.DragDrop += (sender, e) =>
{
TreeNodeAdv sourceNode = (TreeNodeAdv)e.Data.GetData(typeof(TreeNodeAdv));
TreeNodeAdv targetNode = treeViewAdv1.GetNodeAtPoint(treeViewAdv1.PointToClient(new Point(e.X, e.Y)));
if (targetNode != null && sourceNode != targetNode)
{
sourceNode.Remove();
targetNode.Nodes.Add(sourceNode);
targetNode.Expand();
}
};
When: Working with 1000+ nodes, experiencing slow load times
// Enable virtualization
treeViewAdv1.EnableVirtualization = true;
// Optimize expand/collapse
treeViewAdv1.SuspendExpandRecalculate = true;
treeViewAdv1.RecalculateExpansion = false;
// Suspend layout during bulk operations
treeViewAdv1.BeginUpdate();
try
{
// Add thousands of nodes
for (int i = 0; i < 10000; i++)
{
treeViewAdv1.Nodes.Add(new TreeNodeAdv($"Node {i}"));
}
}
finally
{
treeViewAdv1.EndUpdate();
}
DataSource - Data source object (DataTable, List, etc.)DisplayMember - Field for node text displayValueMember - Field for node valueParentMember - Parent ID field for self-referencingChildMember - Child ID field for self-referencingSelfRelationRootValue - Value indicating root nodesShowLines - Display connecting lines between nodesShowRootLines - Display lines between root nodesShowPlusMinus - Display expand/collapse buttonsShowCheckBoxes - Display checkboxes on nodesShowOptionButtons - Display option buttons (radio style)BorderStyle - Border style (None, FixedSingle, Fixed3D)LoadOnDemand - Enable lazy loading of child nodesAllowDrop - Enable drag-drop operationsEnableVirtualization - Enable virtualization for performanceSuspendExpandRecalculate - Optimize expand/collapse performanceRecalculateExpansion - Control dimension calculation on loadText - Node display textTag - Custom data objectChecked - Checkbox stateExpanded - Expand/collapse stateShowCheckBox - Show checkbox for this nodeShowPlusMinus - Show plus/minus for this nodeAfterSelect - After node selection changesBeforeSelect - Before node selection changesNodeSelected - Node selected eventBeforeExpand - Before node expands (use for load on demand)AfterExpand - After node expandsBeforeCollapse - Before node collapsesAfterCollapse - After node collapsesItemDrag - Node drag initiatedDragDrop - Item dropped on controlDragEnter - Drag enters control boundsDragOver - Drag over control boundsBeforeEdit - Before node edit startsAfterEdit - After node edit completesBuild Windows Explorer-like interface with folders and files:
Display company hierarchy with employees:
Create hierarchical settings/preferences interface:
Display database tables and relationships:
Visual editor for hierarchical data formats:
Issue: Nodes not appearing after data binding
Issue: Performance slow with large datasets
Issue: Drag-drop not working
Issue: Changes not reflecting in bound data source
Issue: Plus/minus signs not showing for parent nodes
references/advanced-features.md (opens in a new tab)references/appearance-styling.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/drag-and-drop.md (opens in a new tab)references/editing-operations.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/load-on-demand.md (opens in a new tab)references/node-customization.md (opens in a new tab)references/performance-optimization.md (opens in a new tab)references/scrollbar-customization.md (opens in a new tab)references/sorting.md (opens in a new tab)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