GridContainer simply manages its direct children. So, assuming your buttons are direct children of the container, you can iterate through them via:
for child in $GridContainer.get_children():
In each iteration of that loop, the
child variable will hold a reference the current button. Using that, you can modify any properties associated with that button.