public void CancelEdit()
{
if (originalValues != null)
{
var original = originalValues;
originalValues = null;
for (int i = 0; i < fields.Count; i++)
fields[i].CopyNoAssignment(original, this);
assignedFields = original.assignedFields;
ClearValidationErrors();
}
}