将子项添加到已选择的列表视图项 [英] Adding a subitem to an already selected listview Item

查看:85
本文介绍了将子项添加到已选择的列表视图项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目列表,比如5,每个项目都有1个子项目和第三个子项目。如果我在列表中选择第3项,我如何将子子项添加到所选项的第3列?

I have a list of items, say 5, and each have 1 subitem with and empty third subitem. If I select the 3rd item in the list, how would I add a sub-subitem to the 3rd column of that selected item?

推荐答案

对不起,我认为它out,它是lvVerify.SelectedItems [0] .SubItems.Add()
I am sorry I figured it out, it was lvVerify.SelectedItems[0].SubItems.Add()


这篇关于将子项添加到已选择的列表视图项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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