Washing a cast-iron pan in a dishwasher might chip off the protective coating. The container might become susceptible to rust. So, it is best not to wash cast-iron pan in dishwashers.