Same result using IndexChanged or ValueChangedthe sequence of events firing on this comboboxedit control are:
uxIdTipoContribuyente_editvaluechanged --> here I think that not binding still ocurrs (not 100% sure but if I remember I not use this because can give me the old value on the bo "comboBOBusinessObject.bindingfieldOfThisCombo"
uxIdTipoContribuyente_SelectedIndexChangeduxIdTipoContribuyente_SelectedValueChangedindex and value changed cause same effect, I not sure if using "changing" intead of "changed" can be a solution
--------------------------------------------------------------------------------------------------------------------------------------------------------
I go with the PauseChangedEvent way... had never heard of that property before but I tested it and seems to works, edited ok, saved ok... I can have future problems using this PauseChangedEvent property, what cares I have to keep present when pausing changed events?Can I do this change of a property from another property at BO level?(enabling changed properties for this BO)? it's better because it keep defaults/validate logic separately from the UI?thanks!
Code that seems to works:------------------------public void SetTipoDocumento (TiposDocumentosEnum tipoDocumentoId){ ((BusinessLayer)BusinessObject).PauseChangedEvents();
uxIdTipoDocumento.SelectedValue = (int)tipoDocumentoId;
((BusinessLayer)BusinessObject).ResumeChangedEvents();