Blocking ColumnHeader width

J

Jacek

Hello

Could anybody tell me how to lock resizing ColumnHeader in
listview control - I'd like to set column width to 0 and
do not allow user to resize this column. Is it possible.

Thanks

Jacek
 
G

Guest

Why you need such a hidden column? It doesn´t sounds like
a good practice.
You have an easy way to "attach" extra information to
ListViewItem´s using the "Tag" property. Better
implementations would need subclassing.
 
J

Jacek

I'd like so, but TAG is not supported by the .NET Compact
Framework.

maybe I can get to some resize event from API? I wouldn't
like to create separate collection
 
G

Guest

Sorry... I´ve missed that point.

May be you can send an LVM_GETHEADER message to the
ListView to retrieve the handle of the header control.
That control sends notifications like HDN_ITEMCHANGING
and HDN_TRACK.
 

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