I would not recommend washing stainless steel knives in a dishwasher because they can get banged around in the dishwasher and also become dull.
The dishwasher detergent is abrasive which can dull the knives shine as well as dull the stainless steel knives where they will not cut properly.
I once tried washing stainless steel knives in the dishwasher and it dulled the finish as well as dulled the sharpness of the knives so I had to resharpen the knives.
To wash stainless steel knives or any other knives just soak them in the sink with some soap and warm water and then wipe them off with a wash cloth and then rinse the soap off and they'll be clean enough to use.