I have used some colour to see what's happening.
I no longer try resizing the CLV and it is on a panel.
When I resize the panel the CLV does not resize automatically with it for some reason.
I can manually set the height of the CLV to the panel height which works but the treeCLV then does not fill the CLV
In my app I want to see the dividers.
You can see in my screenshot the tree does not fill the CLV as the green background of the CLV is visible at the bottom.
When you click on Button1 it resizes the Customlistview
I have changed the colour of the background so you can see it.
Then when you click Button1 again it puts it back.
It appears the tree does not fill the CLV
Or I don't understand and could use some help please.