how do you stop glass etching in a dishwasher?

We have tried different detergents and varied the amount of detergent with no results