About TreeView

xiaoxiao2021-03-06  62

TreeView, Chinese translation into "tree catalog", is a very useful control,

Today, I use this control for the first time. There are many things that I don't understand. There are very few information in the newsgroup, so I will learn from TreeView's history.

First, when adding a first layer node, you must use the treeView.Node.add () method, then add TreeView.topNode.Add (), you can also use treected.selectedNode.Add (), in short, you must make sure to add The root node of the node, otherwise the program will be wrong. Haven't found how the method uses code to represent a particular node, because SelectedNode should be determined by a node that needs to be selected with a mouse.

In addition, the biggest problem encountered today is to use TreeView to easily represent the hierarchical relationship between data tables, and browse data in DataSet via TreeView, edit data by corresponding TextBox.

转载请注明原文地址:https://www.9cbs.com/read-84295.html

New Post(0)