开发者

Add combobox to ListViewItem

开发者 https://www.devze.com 2023-02-10 04:48 出处:网络
I\'m creating a Windows Form application using C#. The form contains a ListView. It\'s an application for a Red Cross Dispatcher.

I'm creating a Windows Form application using C#. The form contains a ListView. It's an application for a Red Cross Dispatcher.

The ListView has a list of all units. Each unit has a status. This status needs to be changeable. Therefore I want to开发者_C百科 add a comboBox with all available statuses to each ListViewItem. The Statuses are stored in a MySql database.

How can I do this?


Here's a Microsoft sample article showing exactly how to do this: How to use a ComboBox control to edit data in a ListView control in Visual C#

You'll just have to change how it loads its data.

0

精彩评论

暂无评论...
验证码 换一张
取 消