如何制作"TreeView"?

How to make a "TreeView"?

如何使用DevExpress:
1.TreeView基于数据库?
2. TreeView与数据库同步了吗?
更改了行的内容 -> 数据库已更新。

  Dragged the subordinate line to another node -> the database was updated.

3。为了在节点之间拖放 TreeView 元素。

如何在"designer"或编程的帮助下解决所有问题。

关于“1”的问题,我意识到我们需要创建一个TreeList,然后将TreeList.ViewStyle 属性设置为TreeView
所以在文档中是这样写的

我创建了 TreeList

我在哪里可以更改 属性 TreeList.ViewStyle? 如何制作TreeView

项目 - link

请查看说明如何实现目标的 How to make the TreeList control look like a TreeView 示例。

Check the TreeList's TreeView Style documentation and you can change the view by setting TreeList.ViewStyle Property

示例:

private void Form1_Load(object sender, EventArgs e) {
            treeList1.ForceInitialize();

            treeList1.Appearance.FocusedCell.BackColor = System.Drawing.SystemColors.Highlight;
            treeList1.Appearance.FocusedCell.ForeColor = System.Drawing.SystemColors.HighlightText;
            treeList1.OptionsBehavior.Editable = false;

            treeList1.ViewStyle = DevExpress.XtraTreeList.TreeListViewStyle.TreeView;
        }