C# language: How to freeze listview control in windows form?

我是研究僧i 提交于 2019-12-12 05:37:26

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/2833616/c-sharp-language-how-to-freeze-listview-control-in-windows-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!