Question: why beh2 and mgh2 are covalent?
Answer: Because when we come down in a group then the electropositive character incerases, ionic character increases but covalent character decreases. So thats the reason, why BeH2 and MgH2 shows covalent character.