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
4155
How to constrain an int? field in XamDataGrid to one of two possible values?
posted

How can i make sure the user can only enter either:

120127 or 110127

So far, this is what I am using, but it allows any 6 digit number:

<igDP:Field Name="BillingVendorID" Label="VendorID" Width="0.5*" >
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings>
                                        <igDP:FieldSettings.EditorStyle>
                                            <Style TargetType="{x:Type igEditors:XamNumericEditor}">
                                                <Setter Property="Mask" Value="######" />
                                            </Style>
                                        </igDP:FieldSettings.EditorStyle>
                                    </igDP:FieldSettings>
                                </igDP:Field.Settings>
                            </igDP:Field>