6th. Data filtering and Sorting
A. TreeView control: A tree control that is used to display text or data as nodes, in the order in which they are organized in a hierarchical structure.
1. Common Properties and Event Nodes of the TreeView control Nodes
ImageList storing the image of the node
ImageIndex node default image index
selectedImageIndex the index of the image when the node is selected
SelectedNode the currently selected parent node
AfterSelect Node selected post event
Two. node of the TreeView control
The TreeView control consists of a single node, each of which is a TreeNode type.
Common properties of a node:
Three. Text on the text node
ImageIndex node default image index, which is the same as the TreeView setting by default
selectedImageIndex the image index when the node is selected, the default is the same as the TreeView setting
Four. Level node depth, starting from 0
Nodes the collection of child nodes that the current node contains
ParentNode The parent node of the current node
Two. Making a tree-like menu
1. Add a new TreeView control to the form, set name to Tvmenu.
2. In the Properties window, click the button next to the nodes property to invoke the TreeView editor.
3. Add the root node, then add the child nodes, set the Name property and the Text property
6th. Data filtering and Sorting