Moduli spaces of sheaves via affine grassmannians