开发者

How to hide a column in TListview?

开发者 https://www.devze.com 2023-03-12 23:24 出处:网络
I am using a listview to store and show data. How can i hide and show a column in listview? 开发者_如何学JAVADont tell me to set the column width to 0 please!!!!In the Delphi TListView you can\'t hide

I am using a listview to store and show data. How can i hide and show a column in listview? 开发者_如何学JAVADont tell me to set the column width to 0 please!!!!


In the Delphi TListView you can't hide columns in vsReport view style. Your only option is to delete the column when you need to hide it, and create it again when you need to show it.

This is yet another example of why virtual list views are much more desirable than non-virtual list views. With a virtual list view you can insert new columns without having to iterate across all items in the list and re-populate their sub items.

0

精彩评论

暂无评论...
验证码 换一张
取 消