If the page does show a grid with your projects you can create a dataview that listens to the selected project. In that dataview you not only can show details of that project put you can also put another datagrid inside that retrieves the Tasks of that project over the reference. And you can do the same again to display the subtask by again a dataview that listens to the Tasks grid etc.
Hope this helps. Regards,
Ronald