C# Change ListView Item's/Row's height -


i want change item's/row's height in listview.

i searched every , figured in order change height need use lbs_ownerdrawfixed or measureitem or that.

the problem dont know , how use it..
can me it?

edit:
cant use imagelist hack because using smallimagelist real , need different line height imagelist images size.

thanks!

it can done using smallimagelist trick -- have careful. objectlistview -- open source wrapper around standard .net listview -- uses trick implement rowheight property.

if want 32 pixels each row, allocate imagelist 16x32 (width x height), , position each of images in vertical middle of 32-pixel height.

this screen shot shows 32-pixel rows , word wrapping possible because of space:

enter image description here

objectlistview work you. in fact, if trying listview, should looked @ using objectlistview instead. makes many difficult things (e.g. sorting column type, custom tooltips) trivial, , several impossible things (e.g. overlays, groups on virtual lists) possible.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -