Owner-drawn listview row height VS2005

G

Guest

Does anyone know of a simple method to allow you to change the row height of
an owner-drawn listview control in .NET 2.0 (VS2005) ?

Thanks in advance

Steve
 
M

Mattias Sjögren

Steve,
Does anyone know of a simple method to allow you to change the row height of
an owner-drawn listview control in .NET 2.0 (VS2005) ?

Increasing the control's font size?


Mattias
 
G

Guest

Mattias,

Increasing the font size doesn't work for owner-drawn controls.

The listview exposes DrawItem and DrawSubItems events, while processing
these events increasing the font size has no effect.

Potentially I want each row to have a different height and therefore the
font size would not suit my requirements.

Steve
 
J

Joel Lucsy

A ListView only has one height for all rows. A limitation inherited from
the Win32 control.
 
G

Guest

Joel,

Thanks for the response.

I was hoping that there would be some way to get around this limitation.

Perhaps one day MS will provide true managed controls instead of wrapping
the Win32 controls.

Steve
 

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