Hiding a listview column

C

Cheryl

Hi! It seems that the listview column does not contain an option called
"Hide". Any suggestions to implement such a hiding function excepting
setting the column width = 0?

Thanks.
 
K

Karthik D V

Hi,
Even I found the same scenario with same result! . I didn't found
any other way other than setting width to zero.
 
C

Cheryl

But the user can still alter the column width when the column width is set
to zero... And we can't lock the user from changing the column width...
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Karthik D V said:
Hi,
Even I found the same scenario with same result! . I didn't found
any other way other than setting width to zero.

Same here, width 0 is the only way I have found.
 
M

Morten Wennevik [C# MVP]

Hi! It seems that the listview column does not contain an option called
"Hide". Any suggestions to implement such a hiding function excepting
setting the column width = 0?

Thanks.

You could just remove that column (and add it later if necessary)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top