I suspect that the expression is still used by people who move in less exalted circles than you and I,They are both grammatically correct.We'd say "Did you know that he/she was having an affair with [name]?"
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: