I have a ListView form that looks like this:
我有一个ListView表单,如下所示:
How do I make it so each cell is like an editable textbox so the user can edit the values by clicking on a cell? Like if they click on "Count" a text edit cursor should appear in-place and they should be able to type to change the value of the field (Not in a separate dialog box or text field)
如何使它成为可编辑的文本框,以便用户可以通过单击单元格来编辑值?就像他们单击“计数”一样,文本编辑光标应该就地出现,他们应该能够键入以更改字段的值(不在单独的对话框或文本字段中)
1 个解决方案
#1
1
The ListView is intended for flexible display of a list of items. Similar to windows explorer's ability to show icons, thumbnails, details and basic list, all from the same set of objects. If you really want to edit all of the elements in your data objects, you should probably read up on DataGridView and data-binding.
ListView用于灵活显示项目列表。类似于Windows资源管理器显示图标,缩略图,详细信息和基本列表的功能,所有这些都来自同一组对象。如果您真的想编辑数据对象中的所有元素,您应该阅读DataGridView和数据绑定。
#1
1
The ListView is intended for flexible display of a list of items. Similar to windows explorer's ability to show icons, thumbnails, details and basic list, all from the same set of objects. If you really want to edit all of the elements in your data objects, you should probably read up on DataGridView and data-binding.
ListView用于灵活显示项目列表。类似于Windows资源管理器显示图标,缩略图,详细信息和基本列表的功能,所有这些都来自同一组对象。如果您真的想编辑数据对象中的所有元素,您应该阅读DataGridView和数据绑定。