Strives for the code or the corresponding train of thought
CodePudding user response:
This is a tree structure, database design, you should have a hierarchical relationships, read it out to form the tree line, online a lot of code, you search "treeview database"CodePudding user response:
Devexpress TreeListCodePudding user response:
http://www.myexception.cn/delphi/265429.htmlConsult,
CodePudding user response:
1. Dxdbtreelist pull control interface2. Connect to the database, set up corresponding datasource
3. Dxdbtreelist datasource Settings
4. Dxdbtreelist set keyfield is your table's primary key, set the parentfield is your data in the table corresponding to the parents of node
5. Double-click the controls the columns corresponding column increases the add options page and set the fieldname,
6. If it is the checkbox type choice checkcolumn add, otherwise the default, and set up corresponding checkvalue and uncheckvalue