There is a one day course I once attended called "How to work with Difficult People". My boss sent me to it because I had to work with another PM who was, uh, difficult. It was pretty cheap, under $100.
Then, several years later when I was a Director with a staff of 8 and had a Software Engineer who was a pain, I sent her to the course thinking it might work in reverse. It helped a little. She came back and told me, "we studied your type in class, you're a type C" or whatever.
When dealing with a bad attitude, the best solution is "Root Cause Analysis" - determine what's causing the attitude and then, if determine if you can influence the cause.
You can't let one bad apple spoil the whole bunch. If you can't solve the problem, either remove that person from the team or request that they be reassigned and be prepared to back up your decision or request with your analysis.
-------------------------
The trouble with doing something right the first time is that noboby appreciates how difficult it was.
- Steven Wright