It doesn't matter which emirate you have entered from as long as you have a 30 day UAE visa stamp in your passport then you are entitled to the 10 day grace period.podsaab said:
Sharjah airport won't need to acknowledge a grace period as you'll have a new visa (I assume) by the time you fly out/in again. It doesn't matter whether it's Sharjah or Dubai the same rules appt for this.