When you enter or edit info for a person, there are two fields "Surname now" and "Surname at birth." For a woman this is equal to married name and maiden name. On the tree view you can select which surname to display by using the pop up "Show" menu at the bottom of the screen.