At the bottom of the dope sheet view between the magnifying glass and the “Summary” button you will see three buttons; one that looks like a life preserver, one that looks like a ghost and one that looks like an arrow. Toggle the “arrow” on and off to show all keyframes or just the keyframes for the selected object.