Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
875
Limit characters in a field
posted

In xamdatapresenter, how can I limit the number of characters in an unbound field?  I need a column that will let the user input no more than 8 characters, and don't see any MaxLength type of property.

 

<

 

igDP:UnboundField Name="info" Label="User Info" BindingPath="info" BindingMode="TwoWay" />

something like MaxLength="8" ?

Parents
  • 69686
    posted

    Hello,

    These properties are set through the editor for that field. There are couple of ways that you can do this. You can either set the ValueConstraint property of the editor or set it's mask property to a value that limits the input. You can find more information on the masks here. These settings you can apply to the field by creating a style for the editor (for example XamNumericEditor) and applying that style to the Field->Settings->EditorStyle property.

Reply Children