Infragistics(R) NetAdvantage(R) Windows Forms
XsdConstraintFlags Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : 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

Visual Basic (Declaration) 
Public Enum XsdConstraintFlags 
   Inherits System.Enum
C# 
public enum XsdConstraintFlags : System.Enum 

Members

MemberDescription
All Specifies that all of the constraints should be applied.
DefaultValue Specifies that the DefaultValue constraint should be applied to columns. This corresponds to the 'default' attribute in XSD.
Enumeration Specifies that the Enumeration constraint should be applied to columns. This corresponds to the 'enumeration' facet in XSD.
FixedValue Specifies that the FixedValue constraint should be applied to columns. This corresponds to the 'fixed' attribute in XSD.
ImplicitXsdBaseTypeConstraints Specifies 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.
MaxExclusive Specifies that the MaxExclusive constraint should be applied to columns. This corresponds to the 'maxExclusive' facet in XSD.
MaxInclusive Specifies that the MaxInclusive constraint should be applied to columns. This corresponds to the 'maxInclusive' facet in XSD.
MaxLength Specifies that the MaxLength constraint should be applied to columns. This corresponds to the 'maxLength' facet in XSD.
MaxRows Specifies that the MaxRows constraint should be applied to bands. This corresponds to the 'maxOccurs' attribute in XSD.
MinExclusive Specifies that the MinExclusive constraint should be applied to columns. This corresponds to the 'minExclusive' facet in XSD.
MinInclusive Specifies that the MinInclusive constraint should be applied to columns. This corresponds to the 'minInclusive' facet in XSD.
MinLength Specifies that the MinLength constraint should be applied to columns. This corresponds to the 'minLength' facet in XSD.
MinRows Specifies that the MinRows constraint should be applied to bands. This corresponds to the 'minOccurs' attribute in XSD.
Nullable Specifies that the Nullable constraint should be applied to columns. This corresponds to the 'nillable' attribute in XSD.
RegexPattern Specifies 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.

Visual BasicCopy Code
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
C#Copy Code
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 );
}

See Also