I have a validating event on a field in a repeating table. However, when you change the value for that field in a different row the validation only applies to the last field that was changed.
public void cfname_Validating(object sender, XmlValidatingEventArgs e)
{
if (!Regex.IsMatch(e.NewValue, "[0-9A-Z]{8}.[A-Z]{3}") & GVar.stype == "File Conversion")
e.ReportError(e.Site, true, "Invalid Filename Value");
}
How do I get it so that the validation shows for all rows?
I'd prefer to do this through code as it's easier to maintain than the data validation in the gui.