
Colic in dogs does not have just the same cause as colic in humans. It is fairly common.
There are 5 usual causes of colic in dogs in no particular order:-
1.a natural buildup of gas in the stomach &/or intestines
2. pancreatitis
3. eating spoiled food
4. a bacterial infection
5. intestinal parasites
There can be other underlying causes.
The vet should have done tests to determine the cause(s)
Not sure if gripe water will help, was this suggested by the vet?