如何让每个 Treeview 节点都有一个相关的 TextBox [英] How to make each Treeview Node have a related TextBox
问题描述
我正在尝试制作一个用户填写值的表单.它很长.我希望使用可扩展的树来适应我的一种形式.有没有办法给每个 TreeView 节点一个旁边的 TextBox?仅靠自己编辑节点文本是不够的.
I am trying to make a form in which the user fills in values. It is quite long. I wish to use an expandable tree to fit it into my one form. Is there any way to give each TreeView Node a TextBox by its side? Having the node text edited by itself is not enough.
推荐答案
是编辑节点的文本框吗?还是二手资料?如果节点,它已经可以编辑(编辑/开始编辑或其他东西).如果是次要数据,我很想将其推送到显示/编辑当前选定节点数据的单个文本框中.那可能文本框会令人困惑!
Is the textbox for editing the node? or for secondary data? If the node, it can already be editable (Edit/BeginEdit or something). If secondary data, I would be quite tempted to push this into a single textbox that displays/edits the data for the current selected node. That may text-boxes is going to be confusing!
或者,有一些来自 3rd 方的树视图/网格组合控件可用.可能很合适.这里是(寻找TreeListView
)快速搜索(不是特定的推荐 - 只是一个搜索结果).
Alternatively, there are some treeview/grid combined controls available from 3rd parties. Might be a good fit. Here's (look for TreeListView
) a quick search hit (not a specific recommendation - just a search result).
这篇关于如何让每个 Treeview 节点都有一个相关的 TextBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!