We determine the commutant of homogeneous subrings in strongly groupoid graded rings in terms of an action on the ring induced by the grading. Thereby we generalize a classical result of Miyashita from the groupgraded case to the groupoid graded situation. In the end of the article we exemplify this result. To this end, we show, by an explicit construction,that given a finite groupoid $G$, equipped with a nonidentitymorphism t : d(t) -> c(t), there is a strongly G-graded ring R with the properties that each R_s, for s in G, is nonzero and R_t is a nonfree left R_c(t)-module.