Custom Column Headers for ListView

G

GruBByMaster

Hello

I want to create a custom column header that i will later insert in a
ListView. I just want to change to background color and font color in
the header. Is this possible? I seen some examples in using the
ListView OwnerDraw = ture settings, but that messes up my whole List
display capabilities. I also seen some examples on customizing a
DataGridColumnHeader, but i am not sure i can use that in a ListView.
(At the moment i don't want to change everything i did and move it to
a DataGridView)

Thanks,
Alex.
 
N

Nicholas Paldino [.NET/C# MVP]

Alex,

The only option that you have is to take over the drawing
responsibilities completely by setting OwnerDraw = true. Unfortunately,
when you do this, you are completely responsible for the drawing of the
control, not just bits and pieces.

Hope this helps.
 

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