﻿<?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?)  » How to use DevExpress ComboBoxEdit correctly when adding new records</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 12:45:36 GMT</lastBuildDate><ttl>20</ttl><item><title>How to use DevExpress ComboBoxEdit correctly when adding new records</title><link>http://forum.strataframe.net/FindPost2632.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have a simple table with three columns. All fields are type of Oracle VARCHAR2.&lt;BR&gt;The controls on the screen are Devexpress controls:&amp;nbsp;one TextEdit and two ComboBoxEdit that get populated using BusinessObjects.&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/e00bc95d-6680-4735-bbd4-9a5c.gif"&gt;&lt;/P&gt;&lt;P&gt;The select,update and delete works fine.&amp;nbsp;When adding a new record the business object is entered into the BO (the TextEdit filed becomes empty). The ComboBoxEdit fields show the first item in the lists.&lt;BR&gt;&lt;BR&gt;After entering data to all the fields (to TextEdit by entering text and into ComboBoxEdit by selecting from the list) and pressing "Save", SF returns&amp;nbsp;error: &lt;/P&gt;&lt;P&gt;BusinessLayerException&lt;BR&gt;&amp;nbsp;An error occurred while saving an the data to the server.&lt;BR&gt;DataLayerSavingException&lt;BR&gt;&amp;nbsp;Object reference not set to an instance of an object.&lt;BR&gt;NullReferenceException&lt;BR&gt;&amp;nbsp;Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;The debug info doesn't show a INSERT-statement so the error happens before the actual insert into the database happens.&lt;/P&gt;&lt;P&gt;My guess is that the ComboBoxEdit doesn't get populated or something. Can you figure out what happens here and how should it be handled/programmed correctly?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Kari&lt;BR&gt;</description><pubDate>Tue, 05 Sep 2006 13:39:06 GMT</pubDate><dc:creator>Kari Paukku</dc:creator></item><item><title>RE: How to use DevExpress ComboBoxEdit correctly when adding new records</title><link>http://forum.strataframe.net/FindPost2639.aspx</link><description>You can check the BusinessObject.CurrentDataTable within the Watch window (using the debugger visualizer by clicking the little magnifying glass in the value cell) and determine whether the new record within the business object has values for both of the ComboBoxEdit columns.&amp;nbsp; If they do have the proper values, then it might be that the OracleDataSourceItem you have does not have the latest changes (the bug fixes that I made).&amp;nbsp; &lt;/P&gt;&lt;P&gt;You should be able to download a proper build from &lt;A href="http://www.strataframe.net/downloads/strataframe.exe"&gt;http://www.strataframe.net/downloads/strataframe.exe&lt;/A&gt; that has the proper changes.&amp;nbsp; The only caveat to using this version is that you need to delete your StrataFrameSample database before running the install.</description><pubDate>Tue, 05 Sep 2006 13:39:06 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>