Hello
Dim bndReadonly As New System.Windows.Data.BindingbndReadonly.Source = EntbndReadonly.Path = New System.Windows.PropertyPath("IsEditable")Grid.SetBinding(Infragistics.Windows.DataPresenter.FieldSettings.AllowEditProperty, bndReadonly)
But it does not work.
Can you tell me why this does not work? my object raises the INotifyPropertyChanged correctly.
Thank you.
You can do this but you have to set the Binding on the FieldSettings instance since that is what has the AllowEditing property - not the xamDataGrid. So it would be something like: BindingOperations.SetBinding(Grid.FieldSettings, Infragistics.Windows.DataPresenter.FieldSettings.AllowEditProperty, bndReadonly)