How can I make sure a ListView item always resizes to show all rows?
Posted
by Jon Cage
on Stack Overflow
See other posts from Stack Overflow
or by Jon Cage
Published on 2010-06-15T16:32:29Z
Indexed on
2010/06/18
9:33 UTC
Read the original article
Hit count: 240
I have a panel which contains a TableLayoutPanel
which itself contains a number of ListViews
and Labels
.
What I'd like is for each list view to resize to fit all of it's contents in vertically (i.e. so that every row is visible). The TableLayoutPanel
should handle any vertical scrolling but I can't work out how to get the ListView
to resize itself depending on the number of rows.
Do I need to handle OnResize
and manually resize or is there already something to handle this?
© Stack Overflow or respective owner