once they start to set seed they won't grow any more, and they don't store well either. but onions that have bolted are still edible and will taste fine, so dig them up first and eat them, leaving the others to mature in the ground.