如何在单击鼠标以显示树形视图时在文本框中显示文本 [英] How to display text in a textbox on mouse click for tree view

查看:159
本文介绍了如何在单击鼠标以显示树形视图时在文本框中显示文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有树视图.我必须在鼠标上方使用工具提示或弹出窗口在树视图节点中显示一些内容.它的工作.但我希望他们处于固定位置.我尝试了很多.但它不起作用.因此,我添加了一个带有多行模式的文本框,并在单击该节点时,希望将内容显示在该文本框中.我已经从数据集中获取了内容.我应该如何在文本区域中显示值..
请帮忙.!

Hi,
I have a tree view. I have to display some contents in the tree view nodes onmouse over using tooltip or popup. Its working. But I want them to be in a fixed position. I tried a lot. But its not working. So I have added a text box with multiline mode and on clicking the node, I want the contents to be displayed on that text box. I have already fetched the contents from a dataset. How should i display the values in the text area..
Please help .!

Thanks.

推荐答案

使用asp.net TextBox控件的注意事项使用HTML TextArea控件并显示类似的内容

Isntead of using asp.net TextBox Control use HTML TextArea Control and display the contents like that

textarea1.value= Dataset.Tables[tableindex].Rows[rowindex][columnindex].ToString();


这篇关于如何在单击鼠标以显示树形视图时在文本框中显示文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆