private void RepeatedItemControl_Validating(object sender, CancelEventArgs e)
{
if (edtReplacementChar.Value != null)
{
String replChar = edtReplacementChar.GetValue<string>();
String name = edtName.GetValue<string>();
if (name != null && !name.Contains(replChar))
{
e.Cancel = true;
errorProvider.SetError(edtName, "When using a replacement character the replacement character must exist in the name.");
}
}
}