Version

XsdConstraintFlags Enumeration

Used to specify the constraints found in an XSD file which should be applied to the bands and columns of the grid.
Syntax
'Declaration
 
Public Enum XsdConstraintFlags 
   Inherits System.Enum
public enum XsdConstraintFlags : System.Enum 
Members
MemberDescription
AllSpecifies that all of the constraints should be applied.
DefaultValueSpecifies that the DefaultValue constraint should be applied to columns. This corresponds to the 'default' attribute in XSD.
EnumerationSpecifies that the Enumeration constraint should be applied to columns. This corresponds to the 'enumeration' facet in XSD.
FixedValueSpecifies that the FixedValue constraint should be applied to columns. This corresponds to the 'fixed' attribute in XSD.
ImplicitXsdBaseTypeConstraintsSpecifies that the implicit constraints imposed by the built-in XSD base type should be enforced. For example, if the base XSD type is 'positiveInteger' then the cell value must be greater than zero.
MaxExclusiveSpecifies that the MaxExclusive constraint should be applied to columns. This corresponds to the 'maxExclusive' facet in XSD.
MaxInclusiveSpecifies that the MaxInclusive constraint should be applied to columns. This corresponds to the 'maxInclusive' facet in XSD.
MaxLengthSpecifies that the MaxLength constraint should be applied to columns. This corresponds to the 'maxLength' facet in XSD.
MaxRowsSpecifies that the MaxRows constraint should be applied to bands. This corresponds to the 'maxOccurs' attribute in XSD.
MinExclusiveSpecifies that the MinExclusive constraint should be applied to columns. This corresponds to the 'minExclusive' facet in XSD.
MinInclusiveSpecifies that the MinInclusive constraint should be applied to columns. This corresponds to the 'minInclusive' facet in XSD.
MinLengthSpecifies that the MinLength constraint should be applied to columns. This corresponds to the 'minLength' facet in XSD.
MinRowsSpecifies that the MinRows constraint should be applied to bands. This corresponds to the 'minOccurs' attribute in XSD.
NullableSpecifies that the Nullable constraint should be applied to columns. This corresponds to the 'nillable' attribute in XSD.
RegexPatternSpecifies that the RegexPattern constraint should be applied to columns. This corresponds to the 'pattern' facet in XSD.
Example
This snippet demonstrates how to use the XsdConstraintFlags enum to specify exactly which constraints should be enforced when calling EnforceXsdConstraints.

Private Sub SetupGrid()
   ' Setup the flag so that all of the available constraints except for 'Enumeration' will be enforced.
   '
   Dim xsdFlags As XsdConstraintFlags = XsdConstraintFlags.All And Not XsdConstraintFlags.Enumeration
   
   Me.ultraGrid1.EnforceXsdConstraints("..\someSchema.xsd", xsdFlags)
End Sub
private void SetupGrid()
{
	// Setup the flag so that all of the available constraints except for 'Enumeration' will be enforced.
	//
	XsdConstraintFlags xsdFlags = XsdConstraintFlags.All & ~XsdConstraintFlags.Enumeration;

	this.ultraGrid1.EnforceXsdConstraints( "..\\..\\someSchema.xsd", xsdFlags );
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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