grandson

my 2 year old grandson hasnt had a bowel movement in 16 days now. he's been to the emergency room and his doctor gave him meds . we tried everything possible. the doctor says he is holding it in. how can a child hold it in that long. anyone had this problem with there children