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
1915
Disabling XamDataGrid XamComboEditor field in MVVM way
posted

I need to be able to make a XamDataGrid XamComboEditor read only in mvvm way through binding to a boolean property in a view model. I cant seem to get this to work by simple binding AllowUpdate to this boolean field in FieldSettings, for some reason the field drop down remains active if I bind it to a view model boolean variable. However if I just set AllowUpdate ="False" the field is disabled. Here is my code:

<igDP:Field Label="F1" Name="F1">
    <igDP:Field.Settings>
        <igDP:FieldSettings AllowEdit="{Binding IsEnabled}" EditorType="{x:Type igEditors:XamComboEditor}">
             <igDP:FieldSettings.EditorStyle>
             </igDP:FieldSettings.EditorStyle>
        </igDP:FieldSettings>
   </igDP:Field.Settings>
</igDP:Field>