title: Delphi Error Dataset not in Insert or Edit Mode
body: <p>Objective:</p>
  
  <ol>
  <li>Click on the button on the TRxDBCombo to call a search box</li>
  <li>On Selecting the record from search box, the result is set as Field Value for the TComboEditBox and is posted in the TRxMemoryData Dataset</li>
  </ol>
  
  <p>The Error:</p>
  
  <p>Dataset not in Insert or Edit Mode appears the second time of calling this function</p>
  
  <pre><code>TDBEditBox1.SetFocus;
  Form_Search:= TForm_Search.Create(Application);
  with Form_Search do
    Begin
      showmodal;
      //Get Result from Database
      if trim(TempResult) &lt;&gt; '' then
        Begin
          TDBEditBox1.Field.Value := MResult;
        End;
    End;
  </code></pre>
  
  <p>The setup includes:</p>
  
  <ol>
  <li>A TJvDBGrid with the Data Source connected to a TDataSource</li>
  <li>The TDataSource is Connected to a TRxMemoryData</li>
  <li>A TRxDBComboEdit with its Data Source set to the TDataSource in step 2 above</li>
  </ol>
  
  <p>Please assist</p>