make grid view filtering work.