Blocking ColumnHeader width

  • Thread starter Thread starter Jacek
  • Start date Start date
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
 
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.
 
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
 
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.
 
Back
Top