Show header/footer if current index is set to first/last item or row