UI: Improve performance while matching all

Form manual match: disconnect the grid and the parent form grid while
applying the codes.