title: PowerBuilder - dynamic DataWindow from Cursor
body: <p>How to create dynamic DataWindow in PowerBuilder?</p>
  
  <p>I have procedure in database which return me a cursor. 
  How with this cursor I can create DataWindow with columns?</p>
  
  <p>Example1:
  Cursor:</p>
  
  <pre><code>SELECT DATA, ID FROM TABLE1
  I want DW with columns:
  DATA, ID
  </code></pre>
  
  <p>Example2:
  Cursor:</p>
  
  <pre><code>SELECT DATA, ID, COUNTRY FROM TABLE1
  I want DW with columns:
  DATA, ID, COUNTRY
  </code></pre>
  
  <p>How to create that?</p>