如何在列表框中为所有项目添加链接按钮... [英] how to add a link button inside the listbox for all the items...
本文介绍了如何在列表框中为所有项目添加链接按钮...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你能帮我吗.....
我想在列表框内添加链接按钮.....
对于每个我想要的项目,添加一个链接按钮以显示我想要的内容....
考虑该列表框包含三个项目....我希望列表框中的三个按钮可用...
Can u pls help me.....
I want to add link button inside the listbox.....
For every item i want add one link button to display something which i want....
Consider the listbox contains three Items....I want three buttons should be available in the listbox...
推荐答案
这无法完成. ListBox不能在其中包含另一个控件.
这可以通过使用GridView
的不同方式来完成.
一个BoundField
列显示列表,另一个TemplateField
列显示链接按钮.
您能否提供更多有关您的方案的描述,以便提供更好的解决方案.
:thumbsup:
This cannot be done. ListBox is not designed to contain another control within it.
This can be done in a different way like using aGridView
.
OneBoundField
column to show the list and anotherTemplateField
Column to show the link button.
Can you give a little more description about your scenario so that a better solution can be provided.
:thumbsup:
这篇关于如何在列表框中为所有项目添加链接按钮...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文