Hiding DataGrid footer

The same form might have two data grids, one with footer and one without.

Will this hide all the footers of all the data grids, including the ones where the pagination control is visible?