fixed grid set row clearing by reordering the clear statements