How can I change the height of the column header in a ListView ?
(visual studio-2008,windows forms)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not easy but it can be done.
The basic strategy is to get the underlying header control from the
ListView(using LVM_GETHEADER message), setup aNativeWindowinstance on that control, and then listen for HDM_LAYOUT messages. In that message, you can specify the location and size of the header.As the author of ObjectListView mentioned above, I have to say it’s much easier to let someone else do all this work for you. ObjectListView uses dynamic header height to allow multiline headers and vertical text, like this: