Go against the grain

To go against the natural direction or inclination of something.

The man’s unfriendly attitude goes against the grain of the usually friendly company.