How to hide a column in a ListView control?

后端 未结 9 2370
慢半拍i
慢半拍i 2021-02-14 03:01

How can I hide a column in a ListView control, without setting the column Width property to 0?

Also, can I lock the Width

9条回答
  •  故里飘歌
    2021-02-14 03:37

    I was looking for a way to do the same thing which bring me here.

    I'm not sure if there is a better way of doing it however I use following workaround.

    If you need to add a value to Listview Item but don't want to show it, you can use a subitem index greater than total column count. This way, even though the value exists it is not visible

提交回复
热议问题