Flatten Header and Footer API to be part of Grid API (#13334)

Change-Id: I69975f0bbce0c026f68d06c30c77a3df00fad063