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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With