Dumbledore being gay isn't mentioned anywhere in the books and has no bearing on the story. It was something Rowling said after the series was finished. I believe it was in response to something the filmmakers wanted to do, like they wanted to include a flashback to a young Dumbledore in school and have him flirting with a girl or something.
no subject