简体   繁体   English

具有用户输入内容的自定义WinForm ListBox

[英]Custom WinForm ListBox with user-input content

I have a need to provide as options multiple objects from a particular data set, and populate a list so that an end-user can select, none,some, all, or all + possibly missing data fields (user-input). 我需要提供一个特定数据集中的多个对象作为选项,并填充一个列表,以便最终用户可以选择无,全部,全部或全部+可能缺少的数据字段(用户输入)。

I originally planned to extend a System.Windows.Forms.ListView to include a whitespace item that contained a checkmark, then specially handle the case where a user had clicked this blank line item. 我最初计划扩展System.Windows.Forms.ListView以包括一个包含复选标记的空白项目,然后专门处理用户单击此空白行项目的情况。

I would like the ability to remove these user-input line items if possible. 我希望能够删除这些用户输入的订单项。 I do not have to use a System.Windows.Forms.ListView, but its design seems to best-fit this particular use. 我不必使用System.Windows.Forms.ListView,但它的设计似乎最适合此特定用途。

Is there a control with this functionality already , or an attribute of the System.Windows.Forms.ListView I have missed that may handle these situtations? 是否已经有使用此功能的控件,或者我错过了可能处理这些情况的System.Windows.Forms.ListView的属性?

--- Update --- - 更新 -

 ListBox is changed to System.Windows.Forms.ListView 

DataGrid sounds like it would be a good fit; DataGrid听起来很合适。 otherwise I'd suggest looking at 3rd party controls. 否则,我建议您查看第三方控件。

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

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