Farmers along the Murray-Darling basin use the river for dairy farming and to water crops such as cotton , rice , corn , grapes and other fruit and vegetables , drawing the water from the river by using irrigation .