title: Bind GridViewComboBoxColumn Datasource programmatically
body: <p>On a <code>WinForms</code> application with <code>C#</code> I'm using <code>RadGridView</code> control of <code>Telerik</code> company.  </p>
  
  <p>One of the columns of this RadGridView is of type <code>GridViewComboBoxColumn</code>. I want to give this column a <code>DataSource</code> populated at runtime and then set the three important properties of the ComboBox (<code>DataSource</code>, <code>DisplayMember</code>, <code>ValueMember</code>).</p>
  
  <p><em>How can I programmatically do this?</em></p>
  
  <p>I've tried  </p>
  
  <pre><code>DataGridViewComboBoxColumn comboIBAN = 
      rgvCheques.Columns["clmnIBAN"] as DataGridViewComboBoxColumn;
  </code></pre>
  
  <p>But it ends up with the following error</p>
  
  <p><img src="https://i.stack.imgur.com/e2O1U.png" alt="Error message"></p>