views:

259

answers:

1

My application uses a ListView control to display some data from a database, and I would like to make the height of the row bigger (it is in the 'Detail' view). Here's a screenshot at the moment:

http:// www.freeimagehosting.net/uploads/01478dd96f.png

(Sorry about having to malform it, SO doesn't let me post more than one hyperlink)

As you can see the rows are quite slim and rather ugly :P And I can't find a way to change the height of them in the properties for the ListView.

After Google'ing, I can across this:

http://www.csharper.net/blog/quick_hack_for_setting_the_row_height_of_a_listviewitem.aspx

Which I can imagine working in .NET (even though it's C#) but it is obviously very very hacky.

Does anyone have a simpler solution? Thanks.

A: 

The row height is controlled by the size of your SmallImageList. Give the ListView a SmallImageList and it will look better.

BTW, if you are just starting with a ListView, you can save yourself a lot of trouble by using ObjectListView.

Grammarian