最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to set width of columns when setting ListView's view as List in C#? - Stack Overflow

programmeradmin5浏览0评论

I have ListView (in winForms) in my software and it shows name of software i fill it with. ListView's view can be set to details, big or small icons or list.

When it set to list, sometimes i have a file with long name which make all the columns (don't know exactly if they called columns or not) same long width.

Can i set the width of the columns to fixed number so that even if an item's name of the file (listViewItem.text) is higher than the fixed width number?

For example: if i set the width to 10 and a file name is 20 can the width stay at 10 for all columns.

Thank you

发布评论

评论列表(0)

  1. 暂无评论