This here is where I have seen things go sideways when you start messing with row rules manually. If going that route I don’t use the wizard at all to stop the parser from freaking out.
Something concise on these lines
private void PromiseDatePast_Rule()
{
var action = RuleAction.AddControlSettings(this.oTrans, "V_WCI_Dispatch_1View.JobHead_PromiseDate_c", SettingStyle.Error);
var rr = new RowRule("V_WCI_Dispatch_1View.JobHead_PromiseDate_c", new RowRuleConditionDelegate2(PromiseDatePast_Condition), "Check", new RuleAction[] { action });
edvV_WCI_Dispatch_1View.AddRowRule(rr);
}
private bool PromiseDatePast_Condition(Ice.Lib.ExtendedProps.RowRuleDelegateArgs args)
{
return (!string.IsNullOrEmpty(args.Arg1.ToString()) && DateTime.Parse(args.Arg1.ToString()) < (DateTime)args.Row["JobHead_DueDate"]);
}