What is the ruling on dancing? In what situations is it permissible or impermissible?

Dancing is not allowed
Dancing of women in front of women or dancing of men in front of other men is problematic, as a matter of obligatory precaution, one must refrain from it.
Only dancing of wife for her husband is allowed as long as dancing is not accompanied with forbidden (Haram) music.