How do you disable an item in listview control in .net 3.5

前端 未结 5 660
渐次进展
渐次进展 2020-11-30 14:13

In .net 3.5 windows forms I have a listview with \"CheckBoxes\" = true. Is it possible to dim out or disable some items to prevent the user from checking the box?

5条回答
  •  独厮守ぢ
    2020-11-30 14:17

    You should set the AutoCheck property of the checkbox false.

    AutoCheck - Gets or set a value indicating whether the Checked or CheckState values and the CheckBox's appearance are automatically changed when the CheckBox is clicked.

    Actually this is usable only for the checkbox control.

提交回复
热议问题