I have a UltraOptionSet control with several ValueListItems that is Databound to a business entity. When I click on one of the options in the OptionSet the Business Entity is being updated as expected. The problem is when I navigate to another control on the screen after selecting the option the optionSet control is updating the Business entity again.This really becomes an issue if the other control Iam navigating to is another UltraOptionSet control because that control never really gets the focus and you have to click on the option a second time for it to work. Any Ideals?
I am using NetAdvantage for .NET 2007 Vol. 3 CLR 2.0
Thanks
DataBinding code:
this.ultraOptionSet.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bindingSource2, "Test", false, DataSourceUpdateMode.OnPropertyChanged));
UltraOptionSet code:
valueListItem1.DataValue = "A";valueListItem1.DisplayText = "A";valueListItem2.DataValue = "B";valueListItem2.DisplayText = "B";this.ultraOptionSet.Items.AddRange(new Infragistics.Win.ValueListItem[ {valueListItem1, valueListItem2}); UltraOptionSet:
I'm afraid I don't understand the problem. What do you mean when you say the "optionSet control is updating the Business entity again?" It's setting the same property to the same value? That obviously doesn't make a lot of sense, but even if that's the case, why would it cause a problem?