简体   繁体   English

如何在列表视图中编辑子项目

[英]How to edit subitems in listview

Does anyone know how you can edit the subitems of the listView in the same way as you can the items text labels (this first item in the row)? 有谁知道您可以用与项目文本标签(行中的第一个项目)相同的方式来编辑listView的子项目吗?

Setting the LabelEdit property to true only effect the main item labels of the row not any of the subitems. 将LabelEdit属性设置为true只会影响该行的主要项目标签,而不会影响任何子项目。

        'listview.SelectedItems(0).BeginEdit()

The above line can only edit first column of the listview. 上面的行只能编辑列表视图的第一列。

Listview doesn't have that capability. Listview没有该功能。 One way to accomplish this is to bring up a small form with all the subitems of the listview item in textboxes or a gridview so they can be edited. 实现此目的的一种方法是在文本框或gridview中显示一个包含listview项的所有子项的小型表单,以便可以对其进行编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM