如何在运行时在vb.net中编辑listview中的值 [英] how can i edit values in listview at runtime in vb.net

查看:601
本文介绍了如何在运行时在vb.net中编辑listview中的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在运行时在vb.net中编辑listview中的值

解决方案

如果您正在寻找就地编辑ListView'的内容(特别是详细信息视图模式中ListView的子项),您需要自己实现,或使用第三方控件。



默认情况下,使用标准ListView可以实现的最佳效果是将其LabelEdit属性设置为true,以允许用户编辑ListView第一列的文本(假设您要允许自由格式文本编辑)。



自定义ListView的一些示例(包括完整的源代码)允许就地编辑子项: br $> b $ b

http://www.csharphelp.com/archives2/archive341 .html [ ^ ]



和r在本代码项目文章中,您的问题/疑问将得到解决。



ListView子项的就地编辑 [ ^ ]





希望它有帮助。

how can i edit values in listview at runtime in vb.net

解决方案

If you''re looking for "in-place" editing of a ListView''s contents (specifically the subitems of a ListView in details view mode), you''ll need to implement this yourself, or use a third-party control.

By default, the best you can achieve with a "standard" ListView is to set it''s LabelEdit property to true to allow the user to edit the text of the first column of the ListView (assuming you want to allow a free-format text edit).

Some examples (including full source-code) of customized ListView''s that allow "in-place" editing of sub-items are:

http://www.csharphelp.com/archives2/archive341.html[^]

and refer this Code project article your problem / doubt will be solved.

In-place editing of ListView subitems[^]


Hope it Helps.


这篇关于如何在运行时在vb.net中编辑listview中的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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