Commensurate gratings of deep-metallic grooves have highly localized cavity resonances which do not exist for purely periodic gratings. In this paper we present the experimental dispersion diagram of the resonances of a commensurate grating with three sub-wavelength cavities per period. We observe selective light localization within the cavities, transition from a localized to a delocalized mode and modifications of the coupling of modes with the external plane-wave that may lead to the generation of black modes. This unexpected complexity is analyzed via a theoretical study in full agreement with the experiments. These results open a way to the control of wavelength-dependent hot spot predicted in more complex commensurate gratings.