Hello, I am sorry your grandson is ill. I do not recommend giving kaopectate to children. He needs to be evaluated by his pediatrician for possible dehydration and his stool tested for possible infectious causes of the diarrhea, some of which require therapy. In the meantime, he should be given pedialyte to drink.
Diluted sport drink also fine. Would limit milk and juices.