Populating a listview multi-column

后端 未结 4 853
迷失自我
迷失自我 2020-12-05 16:15

Regarding Listbox to ListView migration.

Hello.

I have a Listbox I add entries like this to:

1;content

Where 1 is always an int and content i

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-05 17:06

    I realise that this post is over a year old but I thought this may be of use, I wrote an article years ago about using a ListView as a multicolumn ListBox, which includes code for populating it. The article is available here (Using a ListView as a multicolumn ListBox) it is written using VB.NET but the code is pretty much exactly the same for C#, I may rewrite it using C# and will add a link for that but that'll be another time.

    Hope this helps, if not feel free to let me know :)

提交回复
热议问题