如何在顶部的列表视图中添加项目 [英] how to add item in listview on top
本文介绍了如何在顶部的列表视图中添加项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
这是我的这种情况:
现在我在listview中有带有复选框和图像的项目.但是现在我想在listview中添加仅包含图像和文本的项目,我不想要复选框..
hi to all..
this my scenario like this:
now i have items with checkboxes and image in listview.but now i wnat to add a item in listview with only image and text, i don''t want check box..
if any body knows pls let me know..
推荐答案
不是将文本值应用于复选框控件,只需将文本值分配给HTML img标签即可. br/>
Instead of applying a text value to a check box control just assign the text value to an HTML img tag.
<asp:CheckBox ID="yourCheckBox" runat="server" Text="<img src='yourimage.gif' alt='herez image' title='ImageTitle' />" />
这篇关于如何在顶部的列表视图中添加项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文