Gas bloating is mainly from maldigestion, I read in a Medscape issue. It can also signal celiac, appendicitis or a gallbladder problem.
The only real cure I know for the simple maldigestion is avoidance of gas producing foods: bread, gassy vegetables, milk (for a lot of people). You can find good lists and explanations on lots of websites.
Rice does not cause gas, but potatoes do. I get along fine with Lactaid milk, but not when chewing the pills, although they will help, quickly, if I accidentally get a big dose of lactose.
Soluble fiber, artificial sweeteners, sugars and complex carbohydrates cause gas.
Adding yogurt or probiotics can help. If you have an overgrowth of bad bacteria you can get a Rx for Rifoximen.