Hello,
Does anyone know how to set a value constraint in code (preferably C#)? I want to set or change the max data length of a column in code when the form is loaded based on values in a table. It was suggested on this form to use the construct show below in xaml. That worked perfectly as a first step, but now I need to be able to do the same thing in code.
Any ideas?
Thanks,
Steve Wall
<igDP:FieldSettings.EditorStyle>
<Style TargetType="igEditors:XamTextEditor">
<Setter Property="ValueConstraint">
<Setter.Value>
<igEditors:ValueConstraint MaxLength="15"/>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.EditorStyle>
Hello Steve,
I believe this is the same issue here.
Hope this helps.
Alex.