Primarily? Maybe depending on where you are, but it's common for them to be fed hay with grains like soybeans.
Now dairy farming? I would not be surprised if they feed mostly all grain and beans. Every part of dairy farming is about industrializing both the process and the cow with a lot of selective breeding for ridiculous amounts of milk production. Milking cows now produce over twice as much milk per cow than they did in the 60s and certainly require more nutrients to maintain than a natural cow's diet would sustain. Some cows are producing 10 gallons of milk per day now.