You can wash stove grates in the dishwasher, but it is much better to wash them by hand. Repeated dishwashing increases the chances of the grates rusting, whereas washing them by hand is gentler.