Ouch that's got to hurt. Sometimes it's really hard to tell if a guy is gay, so I generally don't assume they are unless they say so. It's safer that way I guess.
This kind of happened to me the other week. He was beautiful, he was smiling, and we were laughing. I could see it in his eyes... but then he mentioned how his girlfriend lived close to me.