Wrap listview column header

  • Thread starter Thread starter Marco
  • Start date Start date
M

Marco

Is there a way to get the text in a column header to wrap to multiple lines?
I'm using vb.net 2003.
 
Marco said:
Is there a way to get the text in a column header to wrap to multiple lines?
I'm using vb.net 2003.

Hello Marco,

The common control ListView as defined in Windows itself and implemented in
..NET Framework does not support multi-line column headers. If you still want
to implement this, you can consider coding a control inheriting from
System.Windows.Forms.ListView, or use owner-draw to user paint the column
headers. You could reference
http://www.codeproject.com/cs/miscctrl/customheader.asp for the latter.
 
Thanks. I will take a look at that.

Stanimir Stoyanov said:
Hello Marco,

The common control ListView as defined in Windows itself and implemented
in
.NET Framework does not support multi-line column headers. If you still
want
to implement this, you can consider coding a control inheriting from
System.Windows.Forms.ListView, or use owner-draw to user paint the column
headers. You could reference
http://www.codeproject.com/cs/miscctrl/customheader.asp for the latter.
--
Best regards,

Stanimir Stoyanov
(e-mail address removed)
 

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

Back
Top