Ability to show selected tasks and subtasks on a gantt

I would like the ability to create a gantt view that shows a mixture of tasks and subtasks, but does not show every subtask under a task if it is selected.