﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Adding a Combo Box to a Data Grid</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 11:50:42 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding a Combo Box to a Data Grid</title><link>http://forum.strataframe.net/FindPost1859.aspx</link><description>Is it possible to add a combo box to a data grid view?&amp;nbsp; I want the combo box to display a description from&amp;nbsp;a&amp;nbsp;lookup&amp;nbsp;table and store the item's code in the primary table.&amp;nbsp; I've added Business Binding Sources for each table, but I'm not able to configure the drop down box to display values from the lookup source, but assign the resulting code to the primary table.&amp;nbsp; If this is not possible with the delivered data grid view, can it be done with the DevExpress data grid?&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Lee</description><pubDate>Tue, 25 Jul 2006 10:22:30 GMT</pubDate><dc:creator>lmarrette</dc:creator></item><item><title>RE: Adding a Combo Box to a Data Grid</title><link>http://forum.strataframe.net/FindPost1936.aspx</link><description>I haven't forgotten you, lmarrette, and I've found the problem... just trying to fix it right now :)</description><pubDate>Tue, 25 Jul 2006 10:22:30 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Adding a Combo Box to a Data Grid</title><link>http://forum.strataframe.net/FindPost1879.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I've attached the form and the two BO files.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks for looking at this.&amp;nbsp; If you need more info, please let me know.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lee</description><pubDate>Tue, 18 Jul 2006 19:53:33 GMT</pubDate><dc:creator>lmarrette</dc:creator></item><item><title>RE: Adding a Combo Box to a Data Grid</title><link>http://forum.strataframe.net/FindPost1861.aspx</link><description>Can you post a sample of your code... the two business objects and the form with the grid would be fine.&amp;nbsp; If you don't want to post them here, you can ZIP and email them to me.&amp;nbsp; That way I can step through it and see what the problem might be.</description><pubDate>Sun, 16 Jul 2006 17:50:20 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Adding a Combo Box to a Data Grid</title><link>http://forum.strataframe.net/FindPost1860.aspx</link><description>I removed the Business Binding Source for the lookup and added it back and now the field mappings work.&amp;nbsp; When I display the grid in view only mode, it appears to be working - the data from the lookup table appears.&amp;nbsp; My problem now is I'm getting an error when the grid is enabled for editing and the combobox drop down style is on and I'm inserting a row.&amp;nbsp; The error is: &lt;/P&gt;&lt;P&gt;DataGridView Default Error Dialog:&amp;nbsp; System.Argument.Exception: DataGridViewComboBoxCell value is not valid.&amp;nbsp; It seems like it's rejecting the empty value before I have a changed to edit.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Lee</description><pubDate>Sun, 16 Jul 2006 14:20:24 GMT</pubDate><dc:creator>lmarrette</dc:creator></item></channel></rss>