Hi there GetMem,
Thanks a lot for the code. However I needed to clarify something. In the image, the ID is header row in the second column in the VirtualTree. So I want to check/uncheck the checkbox in the header of the virtualtree and automatically check/uncheck all the rows in the virtualtree.
I hope my description is clearer.
JD