I think with the default capabilities of grep there in no way of doing this.
You could go with something like this, which is just a "small" regex:
grep -r asdf | sed '#^.*/##' | sort --unique
 Note: This approach will not work if the search-pattern contains a //