如何在顶部的列表视图中添加项目

问题描述:

大家好.

这是我的这种情况:

现在我在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' />" />