For such events it is correct to wear underwear, in fact it would be rude not to.

Sir Ian Hamilton [General] who was I think a Gordon when serving in the 19thC-ce makes it clear that underwear was worn for regimental dancing.

Certainly better underwear than a modified kilt which would not swing correctly, and so impair the appearance of the dance.

James