well, you aren't asking how to deal with someone so rude and self-centered?
in general, you gel by working to understand the way the other person works, feels, and thinks
you can do this by asking questions of them, others, and by observing how they deal with things
try and become simpathetic to them, they will notice and appreciate it
however, this sort of relationship building is much different than dealing with an ASS who is so full of themselves they think it is acceptable to dress someone down in front of others