On what grounds? No one forced them to agree not to ask for ID for a CC purchase. I for one always show it when asked, but I do also inform them that they're not supposed to per their agreement with the CC company.
Did you know that both Visa and MasterCard prohibit merchants from requiring customer ID as a condition for accepting their credit or debit cards? All you need is a signed card, and of course the signatures must match.