允许用户编辑项目文本列表视图C#怎么做? [英] Allow the user to edit item text listview c# how to?

查看:112
本文介绍了允许用户编辑项目文本列表视图C#怎么做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表视图,其中有详细的姓名和年龄

姓名|年龄

我的列表listView_Bibliotek.LabelEdit = true;
我只能更改名称,我也想更改年龄和名称

i have a listview whith detailt name and age

Name | Age

my list listView_Bibliotek.LabelEdit = true;
i can only change the name ,i would like to change the age also and the name
How do i write then?

推荐答案

Listview不允许您修改子项.如果您需要一个可以在其中编辑所有列的控件,可以使用例如 DataGridView [^ ]另一个选择是使用第三方控件或自己实现可编辑性(最困难的方法:))
Listview doesn''t allow you to modify sub items. If you need a control where all columns can be edited, could you use for example DataGridView[^] Another option is to use a third party control or implement the editability by yourself (the hardest way :))


这篇关于允许用户编辑项目文本列表视图C#怎么做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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