Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide a column in a ListView control?

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

Also, can I lock the Width of a column?

like image 466
Aan Avatar asked Oct 18 '11 18:10

Aan


1 Answers

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

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

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

like image 199
AaA Avatar answered Oct 13 '22 00:10

AaA