Adding button into a Listview in WinForms

后端 未结 11 2329
天命终不由人
天命终不由人 2020-11-28 11:15

Is there a way to add a button control to a cell in inside a ListView in a WinForms app?

11条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 11:56

    The ListView itself (or ListViewItem) does not function as a container of any kind so no way to add controls directly, however it is doable. I have used this extended ListView with a lot of success: Embedding Controls in a ListView.

提交回复
热议问题