To show the detail pane in the applicable view you must choose one of the orientations described in the Layout view menu.
Layout commands that are available include:
If however, you do not want the detail pane visible you simply select the View Only command [
] to remove the detail pane from the view.
These commands apply to:

View Only command
Horizontal View Orientation command
Vertical View Orientation command
Showing the Detail Pane