<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx</link><description>It’s extremely common to have to hook up lookup tables on your data entry forms in order to populate foreign keys in a database. I’ve talked about how to do this in Winforms and WPF with Datasets and LINQ to SQL before: How Do I: Create a Lookup Combobox</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9948593</link><pubDate>Thu, 14 Jan 2010 19:45:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9948593</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Mona -- you should be able to architect your user control so that you can pass the data into it instead of having the data access inside it. You should consolidate your data management in one place. &lt;/p&gt;
&lt;p&gt;Hi Pam -- You should be able to create a control template for the WPF data grid that contains the same type of lookup controls as shown above. &lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/system.windows.controls.controltemplate"&gt;http://msdn.microsoft.com/en-us/library/system.windows.controls.controltemplate&lt;/a&gt;(VS.100).aspx&lt;/p&gt;
&lt;p&gt;HTH,&lt;/p&gt;
&lt;p&gt;-B&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9948593" width="1" height="1"&gt;</description></item><item><title>re: Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9948502</link><pubDate>Thu, 14 Jan 2010 17:16:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9948502</guid><dc:creator>Pam</dc:creator><description>&lt;p&gt;Please Beth - precisely the same data scenario as above - how do I make this work for a datagridcombobox where there is no SelectedItem Property? Thanks your help.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9948502" width="1" height="1"&gt;</description></item><item><title>re: Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9946698</link><pubDate>Mon, 11 Jan 2010 19:42:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9946698</guid><dc:creator>Mona</dc:creator><description>&lt;p&gt;Thank you for this great post. I now understand that I have to use the same Object Context to query lookup table with entity framework. But I have a problem. I have a page with the info on the orders, but the info on the customer is in a UserControl. So my ComboBox is in that control. I created a two collection view on my page &amp;quot;OrdersSource&amp;quot; and &amp;quot;CustomerLookup&amp;quot; but I don't know how to get &amp;quot;CustomerLookup&amp;quot; from my comboBox in my userControl. If I use ItemsSource=&amp;quot;{Binding Source={StaticResource CustomerLookup}}&amp;quot; it doesn't find it. I can't use DynamicResource. And if I try with RelativeSource FindAncestor it says it can't find &amp;quot;PROPERTY&amp;quot; CustomerLookup. Any ideas how can I resolve this? Thank you!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9946698" width="1" height="1"&gt;</description></item><item><title>re: Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9912051</link><pubDate>Fri, 23 Oct 2009 13:36:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9912051</guid><dc:creator>Didier Baille</dc:creator><description>&lt;p&gt;Thank you so much, Beth, for ItemsSource to be used with Entity Framework, I was getting mad to try to make working EF with SelectedValuePath and SelectedValue. And I can say that I've search unfortunately this in many blog before find the correct way to do in your very clear one. I put your blog in my favourites ! Merci beaucoup !&lt;/p&gt;
&lt;p&gt;Didier, France&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9912051" width="1" height="1"&gt;</description></item><item><title>re: Data Binding WPF Lookup Combobox Values to EF Entities</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9895548</link><pubDate>Tue, 15 Sep 2009 22:43:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9895548</guid><dc:creator>Marcus</dc:creator><description>&lt;p&gt;Thanks Beth!! &amp;nbsp;I just wanted to tell you your blogs are a great source of guidance for me in learning WPF&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9895548" width="1" height="1"&gt;</description></item><item><title>Building WPF Business Applications using Entity Framework</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9620683</link><pubDate>Sat, 16 May 2009 05:06:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9620683</guid><dc:creator>Visual Studio Data</dc:creator><description>&lt;p&gt;I’ve been writing a lot about building WPF business applications with Entity Framework using Visual Studio&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9620683" width="1" height="1"&gt;</description></item><item><title>Notifying the UI when Entity References Change in Lookup Comboboxes</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9587374</link><pubDate>Tue, 05 May 2009 05:51:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9587374</guid><dc:creator>Beth Massi - Sharing the goodness that is VB</dc:creator><description>&lt;p&gt;Last week I wrote about how to data bind WPF lookup comboboxes to entities returned from the Entity Framework.&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9587374" width="1" height="1"&gt;</description></item><item><title>Data Binding WPF Lookup Combobox Values to EF Entities | Microsoft Share Point</title><link>http://blogs.msdn.com/b/bethmassi/archive/2009/04/30/data-binding-wpf-lookup-combobox-values-to-ef-entities.aspx#9580553</link><pubDate>Thu, 30 Apr 2009 18:42:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9580553</guid><dc:creator>Data Binding WPF Lookup Combobox Values to EF Entities | Microsoft Share Point</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoft-sharepoint.simplynetdev.com/data-binding-wpf-lookup-combobox-values-to-ef-entities/"&gt;http://microsoft-sharepoint.simplynetdev.com/data-binding-wpf-lookup-combobox-values-to-ef-entities/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9580553" width="1" height="1"&gt;</description></item></channel></rss>