C # ListView (Checkbox)

xiaoxiao2021-03-06  63

20040907001:

Q: There are dozens of data in a listView control (with checkbox). "Do not allow users to edit the listView control while ensuring that the ruler of the listView can be used normally?",

A: To ensure that ListView's scroll bar can be used normally, you need to set the enabled property of the ListView control to True. To prohibit the user's CHECK status of the listView data item, you can write in the ItemCheck event of the ListView control: E. NewValue = E.currentValeU; meaning "Keep the current selection status"

转载请注明原文地址:https://www.9cbs.com/read-119541.html

New Post(0)