I confused about how to set the height of a custom list view.
In the designer, I have a panel which has a CLV on it. The panel serves as a visual border.
When I populate the list view, I want to increase the height based on how many items are in it, so all items are visible, and also increase the panel height.
The panel height increases as expected, but the CLV height does not. I'm using clv1.GetBase.Height = xxx.
I'm unclear when this isn't working.
I did read something about the CLV height being automatically set based on number and size of items added, but that does not seem to work correctly.
In the designer, I can increase/decrease the height of the CLV and it shows what I want, but I need to change it dynamically in code.
In the designer, I have a panel which has a CLV on it. The panel serves as a visual border.
When I populate the list view, I want to increase the height based on how many items are in it, so all items are visible, and also increase the panel height.
The panel height increases as expected, but the CLV height does not. I'm using clv1.GetBase.Height = xxx.
I'm unclear when this isn't working.
I did read something about the CLV height being automatically set based on number and size of items added, but that does not seem to work correctly.
In the designer, I can increase/decrease the height of the CLV and it shows what I want, but I need to change it dynamically in code.