Form

GPALTreeView

GPALTreeView renders a hierarchical tree in the form, similar to Windows Explorer. Populate the tree from a grid using FillInFrom where the data structure encodes the parent-child relationships. The selected node value is captured in the form data output. TreeView is useful for presenting category hierarchies, file system structures, or organizational data for user selection.

Examples

GPAL Fluent: High-level fluent C# API

//The grid passed to FillInFrom determines the tree structure. The convention for encoding hierarchy depends on the GPAL tree data format - typically parent-child relationships are expressed via a parent ID column.

// Tree view in a form

GPAL.Form

.WithTitle("Select Category")

.WithFormControl((TreeView)GPAL.TreeView

.WithText("Categories"))

.FillInFrom(categoryGrid)

.ShowDialog();

💬 Ask GPAL