/// <summary>
 /// Throws if invalid.
 /// </summary>
 public void Validate()
 {
     if (ValidateObject != null)
     {
         var args = new ValidateObjectEventArgs(this);
         ValidateObject.Raise(this, args);
     }
 }
		/// <summary>
		/// Throws if invalid.
		/// </summary>
		public void Validate()
		{
			if (ValidateObject != null)
			{
				var args = new ValidateObjectEventArgs(this);
				ValidateObject.Raise(this, args);
			}
		}
 private void gridView_ValidateRow(object sender, ValidateRowEventArgs e) {
     if (e.Valid) {
         ValidateObjectEventArgs ea = new ValidateObjectEventArgs(FocusedObject, true);
         OnValidateObject(ea);
         e.Valid = ea.Valid;
         e.ErrorText = ea.ErrorText;
     }
 }