title: How to set Validation for all controls in a user control?
body: <p>I am looking for the best way to set the validation group for all of the controls contained in a user control.  Most of the controls in the control are created dynamically when the control is loaded.  It has quite a few input fields and validators.</p>
  
  <p>I would like to save time by setting the validation for all the controls and validators with some sort of function that could just loop through everything and set it.</p>
  
  <p>It seems though that there is no consistent interface that includes validation group for all of the different controls that have the property.  </p>
  
  <p>Should I use reflection to check for Validation group, I know I can do this, but is there a better way?</p>
  
  <p>We are using C# by the way. </p>
  
  <p>Any help would be appreciated.  Thanks!</p>
  
  <p>EDIT:  I put the answer down below for anyone who wants the code.  </p>