<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx</link><description>This post examines usage of ComboBox in DataGrid. In particular, it shows how to implement foreign key scenarios in lieu of missing SelectedValue property. It also highlights workaround for a bug in RC0 that causes ComboBox dropdown to close immediately</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7252870</link><pubDate>Thu, 12 Nov 2009 22:46:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7252870</guid><dc:creator>vaddi</dc:creator><author>vaddi</author><description>&lt;p&gt;Manish, Your sample projects are very helpful for Silverlight Beginner you have covered more than enough to deal with ComboBox. Thanks and I will look forward to see more from you. Vaddi.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7252870" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7247914</link><pubDate>Thu, 05 Nov 2009 17:06:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7247914</guid><dc:creator>Mamoon ur Rasheed</dc:creator><author>Mamoon ur Rasheed</author><description>&lt;p&gt;Check out this article to bind data to combobox inside data grid, i hope this will help to start&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://aspilham.blogspot.com/2009/11/data-binding-to-combox-inside-datagrid.html"&gt;aspilham.blogspot.com/.../data-binding-to-combox-inside-datagrid.html&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7247914" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7234830</link><pubDate>Wed, 21 Oct 2009 10:39:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7234830</guid><dc:creator>Jacky Kenhjiro</dc:creator><author>Jacky Kenhjiro</author><description>&lt;p&gt;This Method work on DataGrid but in DataForm not Work ....&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7234830" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7227382</link><pubDate>Sun, 11 Oct 2009 20:53:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7227382</guid><dc:creator>Karol Stachyra</dc:creator><author>Karol Stachyra</author><description>&lt;p&gt;Thx for the article! its very useful:)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7227382" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7171794</link><pubDate>Mon, 17 Aug 2009 23:43:03 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7171794</guid><dc:creator>Simon</dc:creator><author>Simon</author><description>&lt;p&gt;There appears to be a problem with the combobox losing its settings when the data grid has enough rows to need a scrollbar. When a row is off page the combobox is reset (various effects depending on binding - for me the selected item is removed) and eventually it throws an exception way down in the bowls of the combobox. Any thoughts ?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7171794" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7154478</link><pubDate>Sat, 25 Jul 2009 16:38:29 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7154478</guid><dc:creator>Peter Wone</dc:creator><author>Peter Wone</author><description>&lt;p&gt;I'm trying to do this with DomainDataSources with little success.&lt;/p&gt;
&lt;p&gt;This example is similar to your example above; I want the UI to show a combobox supporting selection from a table of parties.&lt;/p&gt;
&lt;p&gt;Here's an excerpt. &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;data:DataGrid x:Name=&amp;quot;dataGrid2&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IsReadOnly=&amp;quot;False&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HorizontalAlignment=&amp;quot;Left&amp;quot; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HorizontalScrollBarVisibility=&amp;quot;Disabled&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ItemsSource=&amp;quot;{Binding Data, ElementName=ddsTransfer}&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;data:DataGrid.Columns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;data:DataGridTemplateColumn Header=&amp;quot;Party&amp;quot; &amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;data:DataGridTemplateColumn.CellTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DataTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;TextBlock &lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Style=&amp;quot;{StaticResource ContentTextStyle}&amp;quot; &lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Text=&amp;quot;{Binding PartyId}&amp;quot;&lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DataTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/data:DataGridTemplateColumn.CellTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;data:DataGridTemplateColumn.CellEditingTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;DataTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ComboBox &lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SelectedItem=&amp;quot;{Binding PartyId, Mode=TwoWay}&amp;quot; &lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ItemsSource=&amp;quot;{Binding Data, ElementName=ddsParty}&amp;quot; &lt;/p&gt;
&lt;p&gt;	 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DisplayMemberPath=&amp;quot;Name&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/DataTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/data:DataGridTemplateColumn.CellEditingTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/data:DataGridTemplateColumn&amp;gt;&lt;/p&gt;
&lt;p&gt;I would normally show the party name but this snippet is simplified for the purpose of the question.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7154478" width="1" height="1"&gt;</description></item><item><title>Silverlight 3 ComboBox Control | I love .NET!</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7139528</link><pubDate>Fri, 03 Jul 2009 20:15:40 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7139528</guid><dc:creator>Silverlight 3 ComboBox Control | I love .NET!</dc:creator><author>Silverlight 3 ComboBox Control | I love .NET!</author><description>&lt;p&gt;Pingback from &amp;nbsp;Silverlight 3 ComboBox Control | I love .NET!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7139528" width="1" height="1"&gt;</description></item><item><title>Silverlight 3 ComboBox Control</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7139453</link><pubDate>Fri, 03 Jul 2009 17:42:56 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7139453</guid><dc:creator>Community Blogs</dc:creator><author>Community Blogs</author><description>&lt;p&gt;This post outlines technique for displaying ComboBox control with .net RIA services to handle Foreign&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7139453" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7132664</link><pubDate>Tue, 23 Jun 2009 17:08:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7132664</guid><dc:creator>Marc</dc:creator><author>Marc</author><description>&lt;p&gt;Of course! Add partial classes to extend what's generated. Thanks!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7132664" width="1" height="1"&gt;</description></item><item><title>re: ComboBox in DataGrid</title><link>http://weblogs.asp.net/manishdalal/archive/2008/09/28/combobox-in-datagrid.aspx#7098322</link><pubDate>Tue, 26 May 2009 23:38:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7098322</guid><dc:creator>manish.dalal</dc:creator><author>manish.dalal</author><description>&lt;p&gt;@March,&lt;/p&gt;
&lt;p&gt;You are probably confusing Extended methods with partial class. Partial class allows you to provide other partial class(es) and compiler will combine them. You can include any property, methods or other attributes!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7098322" width="1" height="1"&gt;</description></item></channel></rss>