GrapeCity MultiRow Windows Forms Documentation
Validators Property


Gets the validators that contain all the CellValidators used by the current cell.
Syntax
<MergablePropertyAttribute(False)>
<SuppressMessageAttribute(Category="Microsoft.Naming", 
   CheckId="CA1704:IdentifiersShouldBeSpelledCorrectly", 
   Scope="", 
   Target="", 
   MessageId="Validators", 
   Justification="")>
<SRCategoryAttribute("Data")>
<SRDescriptionAttribute("Indicates a set of validator items that help validate cell values.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)>
Public ReadOnly Property Validators As ValidatorCollection
Dim instance As Cell
Dim value As ValidatorCollection
 
value = instance.Validators
[MergableProperty(false)]
[SuppressMessage(Category="Microsoft.Naming", 
   CheckId="CA1704:IdentifiersShouldBeSpelledCorrectly", 
   Scope="", 
   Target="", 
   MessageId="Validators", 
   Justification="")]
[SRCategory("Data")]
[SRDescription("Indicates a set of validator items that help validate cell values.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ValidatorCollection Validators {get;}

Property Value

A ValidatorCollection value that represents all the CellValidators used by the current cell.
Remarks
GcMultiRow provides the capability to validate the cell's value. You can add some CellValidators to this collection, and specify the CellValidator's CellValidator.Actions. In each CellValidateAction, you should indicate when the action will occur through the CellValidateAction.DoActionReason property. When each CellValidator is executed, if the validation fails, all CellValidateActions in this CellValidator are performed, and the actions notify of the validation failure.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cell Class
Cell Members
CellValidator Class
CellValidateAction Class
ValidatorCollection Class
ValidateReasons Enumeration

 

 


Copyright © GrapeCity, inc. All rights reserved.