Remove duplicate entries from grid view