You cannot claim any dependents if you could be claimed as a dependent by another taxpayer. Similarly, you cannot claim any dependents if your spouse could be claimed as dependent by another taxpayer, and you and your spouse are filing jointly.
"Could be claimed" means "if another taxpayer is entitled to claim you as a dependent." Thus, you cannot claim a deduction for your child even if your parent does not even actually claim you as a dependent.
For more information: