It is not the carbon in stainless that makes it magnetic, it is the presence or absence of nickel in the alloy that makes the difference.
If it is a blued gun, more than likely it has an aluminum gripframe. The cylinder, cylinder frame and barrel should be steel. The magnet will not stick to...