// The problem is that when SelectedValue on uxIdtipoDocumento is called, the BO's strataframe businesslayer call the event CurrentView_ListChanged that have this code:If (Not Me._AreChangedEventsPaused) Then loDelegate.Invoke(Me.GetPropertyDescriptor(e.PropertyDescriptor.Name), EventArgs.Empty) ...// this code seems to refresh the value of the datasource and I loose the value that I setted on the combobox AI have to do it at BO level? to do this I have to set BO's properties on BOM "Property changing events" to single for all / unique for each property and alter values here? or I have to control the "ChangedEventPaused"? (can I?) thanks in advance for the help that can bring to me on this problem
// The problem is that when SelectedValue on uxIdtipoDocumento is called, the BO's strataframe businesslayer call the event CurrentView_ListChanged that have this code:
If (Not Me._AreChangedEventsPaused) Then loDelegate.Invoke(Me.GetPropertyDescriptor(e.PropertyDescriptor.Name), EventArgs.Empty) ...
// this code seems to refresh the value of the datasource and I loose the value that I setted on the combobox A
I have to do it at BO level? to do this I have to set BO's properties on BOM "Property changing events" to single for all / unique for each property and alter values here? or I have to control the "ChangedEventPaused"? (can I?)
thanks in advance for the help that can bring to me on this problem
((BusinessLayer)BusinessObject).PauseChangedEvents();
uxIdTipoDocumento.SelectedValue = (int)tipoDocumentoId;
((BusinessLayer)BusinessObject).ResumeChangedEvents();
}