public void OnColumnChanged(object sender, DataColumnChangeEventArgs e) { if (TableUtil.InConstraint(e.Row.Table)) { RuleColumn column = TableUtil.GetRuleColumn(e.Column); if (column != null && column.HasConstraints) { string message = ""; if (!DataUtil.CheckConstraints(e.Row[column.ColumnName], column, ref message)) { if (message != null && !message.Equals("")) { throw new RuleColumnConstraintException(this, e.Row, column, message); } //SendRuleExceptionEvent(sender, new RuleColumnConstraintException(this, e.Row, column, message)); else { throw new RuleColumnConstraintException(this, e.Row, column); } //SendRuleExceptionEvent(sender, new RuleColumnConstraintException(this, e.Row, column)); } } } }