C#语言:如何冻结Windows窗体中的listview控件? [英] C# language: How to freeze listview control in windows form?

查看:94
本文介绍了C#语言:如何冻结Windows窗体中的listview控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要冻结listview中的某些列,因此当用户水平滚动时,冻结的列将不会受到影响(例如在excel中),但是没有datagrid中的冻结的(bool)属性.可以在listview控件中完成吗?谢谢

i need to freeze certain columns in listview so when the user scrolls horizontally the frozen columns will not be affected (like in excel) but there is no frozen(bool) property like that in datagrid. Can this be done in listview control? Thanks

推荐答案

ListView不支持此功能,也无法轻松添加.考虑改用DataGridView.其列具有冻结属性.

ListView has no support for this, nor can it easily be added. Consider using DataGridView instead. Its columns have a Frozen property.

这篇关于C#语言:如何冻结Windows窗体中的listview控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆