What is viral gastritis? Is it contagious?

Yes. A viral infection affecting the upper intestinal tract causing abdominal pain, nause and vomiting. As it is a viral infection, it can be transmitted.
Stomach flu. Yes it is contagious...Like a cold or flu is contagious.