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
20
XamDataGrid Field with EditorStyle XamDateTimeEditor
posted

I have a XamDatagrid with a column whose EditorStyle is set to XamDateTimeEditor.

1) i would like to set a dynamic ValueConstraint based on the value of another Field and

2) I want to be able to change the value of the EditorStyle in code behind based on a specif rule. I have tried looking all over the net for answer but to no avail

<igDP:Field Name="override_date" Converter="{StaticResource dateConverter}" Label="Override &#x0a;Date" AllowEdit="True" AllowRecordFiltering="False" Width="90">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamDateTimeEditor}" >
<Setter Property="Mask" Value="mm/dd/yyyy"/>
<Setter Property="ValueConstraint">
<Setter.Value>
<igEditors:ValueConstraint></igEditors:ValueConstraint>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>