In this study, we propose computer simulations of charged cylindrical microgels. The effects of cross-linking density, aspect ratio, and fraction of charged groups on the microgel swelling and collapse with a variation in the solvent quality were studied. The results were compared with those obtained for equivalent neutral cylindrical microgels. The study demonstrated that microgels' degree of swelling strongly depends on the fraction of charged groups. Polyelectrolyte microgels under adequate solvent conditions are characterized by a larger length and thickness than their neutral analogues: the higher the fraction of charged groups, the longer their length and greater their thickness. Microgels' collapse upon solvent quality decline is characterized by a decrease in length and non-monotonous behavior of its thickness. First, the thickness decreases due to the attraction of monomer units (beads) upon collapse. The further thickness increase is related to the surface tension, which tends to reduce the anisotropy of collapsed objects (the minimum surface energy is known to be achieved for the spherical objects). This reduction is opposed by the network elasticity. The microgels with a low cross-linking density and/or a low enough aspect ratio reveal a cylinder-to-sphere collapse. Otherwise, the cylindrical shape is preserved in the course of the collapse. Aspect ratio as a function of the solvent quality (interaction parameter) demonstrates the maximum, which is solely due to the electrostatics. Finally, we plotted radial concentration profiles for network segments, their charged groups, and counterions.