I know. It makes no sense. Or at least it makes no sense to any sensible person!
Detach, detach, detach! Remember you cannot control how he behaves: if he's an arse, there is nothing you can do about it. But you can control your reactions : you can learn to say to yourself "Oh, he's trying to wind me up there. Silly man. Well, that's not going to work!"
IMO, he's fighting to assert himself because he feels out of control, and though it feels like he's trying to get at you, really it's not about you or your DD, it's all about him. Emotionally, he is behaving rather like a spoilt child who wants the toy, and you are the mean grown-up (or just the glass cabinet
) who is stopping him from having what he wants. He is not thinking of your DD as some one, but as some thing. He might - just - be thinking of you as some one, but you're someone who is stopping him from having what he wants. And even worse,
he thought you were someone who was no problem, someone he could boss about, someone who would do whatever he wanted - but now you're standing up to him, and he finds that confusing and infuriating!
So, this week... Make your plan. Decide how the visit needs to be/go for your DD to enjoy it, and for you to stand it. Discuss it all with your mum. Stick to it. If he emails you a load of unnecessary detail and orders and rudeness today or tomorrow, just ignore him. If he says "This is going to happen" or "That isn't going to happen", just ignore it. It's just noise!
You must focus on detaching and not reacting to his bad behaviour, because the chances are, he is going to behave badly for a lonnnng time.
There is nothing that you can do that will make him behave better; he has to make himself... And meanwhile, you just have to tap your fingers and twiddle your thumbs and wait for him to grow up stay calm and look after your DD and yourself.