Addtional Information
=========
I did some additional research and changed the application to use a
collectionViewSource on Control 1 (the user control where I update a
table.) and Control 2 (which used the records in the table in a drop
down box.)
Good News
==========
The UPDATES on Control 1 are automatically reflected in the Control 2
dropdown box even without doing a save.
Bad News
========
The INSERTS in Control 1 are NOT reflected in Control 2 even if there
is a save.
I did the insert two ways:
1. Allowed inserts on the datagrid control IN control 1
2. Created a detail template created a new object and added the new
object to the context.
CODE XAML IN CONTROL 1
==========
<UserControl.Resources>
<CollectionViewSource x:Key="directoryNamesViewSource"
CollectionViewType="{x:Type ListCollectionView}" />
</UserControl.Resources>
<StackPanel Name="stpMain">
<Grid DataContext="{StaticResource directoryNamesViewSource}"
Width="501" Name="DG1">
CODE BEHIND IN CONTROL 1
==========
myCollectionViewSource =
(System.Windows.Data.CollectionViewSource)this.Resources["directoryNamesViewSource"];
myCollectionViewSource.Source =
context.directoryNames;
NEW QUESTION
==============
It seems that I must have the bindings correct or the updates wouldn't
show.
Is there anything that I should have to do differently for the
inserts?
Does the INotify not work for adds?
What should I do.
Thanks
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net