ComboBox databinding problems
This one is new in Beta 2. I didn't see this problem in Feb CTP.
I have several ComboBoxes bound to fields in an ADO DataTable. When the ComboBoxes are created and the initial datbinding takes place, an update is being made to the DataTable. A call to datatable.HasChanges() now returns 'true' even though the user hasn't interacted with the controls and causes my app to popup a SaveChanges dialog box. The XAML for the comboxes looks like this:-
<
ComboBoxGrid.Column="1"Grid.Row="7"x:Name="Religion"ItemTemplate="{DynamicResource XmlOptionsTemplate}"ItemsSource="{Binding Source={StaticResource ReligionOptions}}"SelectedValue="{Binding Path=Registration/Religion}"SelectedValuePath="@Value"><!--
ItemContainerStyle="{StaticResource comboBoxItemStyle}"--></
ComboBox>If I remove the comboboxes from the form or just remove the binding the problem doesn't occur.
I'm also seeing the following in the debug window every time the databinding changes the combobox selection:-
BindingExpression path error: 'InnerText' property not found on 'current item of collection' ''null''.
BindingExpression:Path='/InnerText'; DataItem=''null'';
target element is 'ComboBox (Name='Religion')'; target property is 'NoTarget' (type 'Object');
Something similar was mentioned in this posthttp://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=292146&SiteID=1 (last message) and the ExpenseIt SDK sample also shows the same error message when changing the combobox selection.
Are the two problems connected and is there a workaround?
Thanks
Michael

