I’ve hacked again the well-known MFC grid because I didn’t get the virtual mode to work with the tree control (as you know, the tree control attaches to the grid and enables dynamic row hiding). So it’s far easier to store the required data a hidden cell field and then modifying the GetText() cell method to dynamically get the needed text.