public override ValidationResult Validate(object value, CultureInfo cultureInfo)
        {
            IValidateable entry = (value as BindingGroup).Items[0] as IValidateable;

            if (entry == null)
            {
                return(ValidationResult.ValidResult);
            }

            string error = entry.ValidateAndGetError();

            if (string.IsNullOrEmpty(error))
            {
                return(ValidationResult.ValidResult);
            }

            return(new ValidationResult(false, error));
        }