I have a WPF application and I am using EDM.
I have a two user controls. Control 1 updates a lookup table.
Control 2 has a datagrid with one of the columns as a combo box.
That combobox derives its data from table managed by Control1.
When the lookup table in Control1 changes, I want the combobox in a
datagrid in Control 2 (cboconnectionStringID) to be refreshed. I
have written the following code that is triggered by a save from
Control 1:
IQueryable<connectionString> itemList = context.connectionStrings;
itemList.OrderBy((item) => item.connectionStringDescription);
cboconnectionStringId.ItemsSource = itemList;
In debug mode I know that the itemlist has the new lookuptable items,
but they do not display in the combo box in the datagrid.
How can I force the new items to appear in the combobox?
Is there some refresh method that I am missing?
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