S.C. Code Ann. § 20-7-7210
(B) A child is eligible for detention in a secure juvenile detention facility only if the child:
(2) is charged with a crime which, if committed by an adult, would be a felony or a misdemeanor other than a violent crime, and the child:
(d) has a demonstrable recent record of adjudications for other felonies or misdemeanors; and
(8) is charged with an assault and battery or an assault and battery of a high and aggravated nature on school grounds or at a school-sponsored event against any person affiliated with the school in an official capacity.
A child who meets the criteria provided in this subsection is eligible for detention. Detention is not mandatory for a child meeting the criteria if that child can be supervised adequately at home or in a less secure setting or program. If the officer does not consent to the release of the child, the parents or other responsible adult may apply to the family court within the circuit for an ex parte order of release of the child. The officer's written report must be furnished to the family court judge who may establish conditions for the release.