<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://xceed.com/CS/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>Xceed Grid for .NET</title><link>http://xceed.com/CS/forums/11/ShowForum.aspx</link><description>Discussions about Xceed Grid for .NET</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Re: Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31643.aspx</link><pubDate>Mon, 06 Feb 2012 21:26:05 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31643</guid><dc:creator>Marc [Xceed]</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31643.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31643</wfw:commentRss><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;After looking at your sample application, I was noticing that in the ActivatingControl event, you were checking to see if the ComboBox in the last column had a SelectedItem. The only issue is that the control was always null. You are also going to need to localize your ComboBoxes and assign them different data sources. I have updated your sample application to show the changes.&lt;br&gt;&lt;/p&gt;</description></item><item><title>Re: Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31639.aspx</link><pubDate>Sun, 05 Feb 2012 00:11:01 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31639</guid><dc:creator>Leo</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31639.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31639</wfw:commentRss><description>&lt;P&gt;Hey Marc, I did have that code in there so I think I sent the wrong zip. I've attached the sample again, let me know if it's the right one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I am trying to update a cell in different column in the same row.&lt;/P&gt;</description></item><item><title>Re: Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31635.aspx</link><pubDate>Fri, 03 Feb 2012 18:43:24 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31635</guid><dc:creator>Marc [Xceed]</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31635.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31635</wfw:commentRss><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;After reviewing your sample, I noticed that the code for the ActivatingControl/DeactivatingControl was not included. Are you able to send me your updated sample? In theory and practice, you should be able to extract the source of the ComboBox from the ActivatingControl (because you have access to the actual instance) and replace the source with a modified collection.&lt;/p&gt;&lt;p&gt;I do have 1 question for you. When you say that you want the value of one ComboBox to affect the ComboBox in another cell, are you talking about:&lt;/p&gt;&lt;p&gt;- another cell in a different column, same row? &lt;br&gt;&lt;/p&gt;&lt;p&gt;- another cell in the same column, different row? &lt;br&gt;&lt;/p&gt;</description></item><item><title>Re: Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31631.aspx</link><pubDate>Wed, 01 Feb 2012 23:03:32 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31631</guid><dc:creator>Leo</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31631.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31631</wfw:commentRss><description>I worked up a quick simple example. Hopefully it'll help you understand what I'm trying to do.</description></item><item><title>Re: Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31624.aspx</link><pubDate>Mon, 30 Jan 2012 16:52:25 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31624</guid><dc:creator>Marc [Xceed]</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31624.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31624</wfw:commentRss><description>&lt;p&gt;Hi Leo,&lt;/p&gt;&lt;p&gt;Just to better understand the issue, are you able to send me a small self contained sample application so that I can investigate it further? My goal is to understand and see how your application will look like with the data in the GridControl and what possible real-life values will the Grid be populated with. With your sample, I will be able to provide you with an answer that is tailored to your specific means.&lt;br&gt;&lt;/p&gt;</description></item><item><title>Update items in combo box CellEditorManager based on another cell value</title><link>http://xceed.com/CS/forums/thread/31616.aspx</link><pubDate>Fri, 27 Jan 2012 01:05:07 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:31616</guid><dc:creator>Leo</dc:creator><slash:comments>0</slash:comments><comments>http://xceed.com/CS/forums/thread/31616.aspx</comments><wfw:commentRss>http://xceed.com/CS/forums/commentrss.aspx?SectionID=11&amp;PostID=31616</wfw:commentRss><description>&lt;P&gt;I'm trying to update the items in a combo box in one cell, based off the value of a combobox in another cell. In the ActivatingControl event. I've tried adding and removing items from the WinComboBox returned by the CellEditorEventArgs.Control but I receive an error saying that the datasource does not support insertion or deletion. I get the same thing when attempting to remove items from the CellEditorEventArgs.Cell.CellEditorManager. I've also tried to update the datasource directly, which doesn't error but doesn't update the combo box either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm setting up the combo box as follows:&lt;/P&gt;&lt;FONT size=2&gt;
&lt;P&gt;System.Collections.Generic.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;SortedList&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;lt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;int&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&amp;gt; prodList = oApplication.getProductList();&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;cbprod.TemplateControl.AllowFreeText = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;false;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;
&lt;P&gt;cbprod.TemplateControl.DropDownSize = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;Size&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(g.Columns[1&lt;/FONT&gt;&lt;FONT size=2&gt;].Width * 2, 150);&lt;/P&gt;
&lt;P&gt;cbprod.TemplateControl.DropDownControl.Columns[0].VisibleIndex = 1;&lt;/P&gt;
&lt;P&gt;g.Columns[1&lt;/FONT&gt;&lt;FONT size=2&gt;].CellEditorManager = cbprod;&lt;/P&gt;
&lt;P&gt;g.Columns[1&lt;/FONT&gt;&lt;FONT size=2&gt;].CellViewerManager = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; Xceed.Grid.Viewers.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;ComboBoxViewer&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;(prodList.ToList(), &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Value"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"%Value%, %Key%"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;);&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT size=2&gt;
&lt;P&gt;g.Columns[1].CellEditorManager.ActivatingControl += AppProduct_ActivatingControl;&lt;/P&gt;
&lt;P&gt;g.Columns[1].CellEditorManager.DeactivatingControl += AppProduct_DeactivatingControl;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I've tried 4 different ways of adding and removing items as described above, I didn't include that code here. I was hoping to get some suggestions on how to do it with the setup I posted above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Leo&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description></item></channel></rss>