title: How to use DataSource, ValueMember and DisplayMember of ComboBox in a usercontrol
body: <p>I have a <code>UserControl</code> with a <code>Label</code> and <code>ComboBox</code> on it.
  what I'm trying to do is to set it's <code>DataSource</code>, <code>ValueMember</code> and <code>DisplayMember</code> properties from the <code>UserControls</code> property grid at design time.</p>
  
  <p>To this inside the <code>UserControl</code> I set the following properties:</p>
  
  <pre><code>public object MyDataSource
  {
      get { return myLbComboBox1.DataSource; }
      set { myLbComboBox1.DataSource = value; }
  }
  
  public string MyValueMember
  {
      get { return myLbComboBox1.ValueMember; }
      set { myLbComboBox1.ValueMember = value; }
  }
  
  public string MyDisplayMember
  {
      get { return myLbComboBox1.DisplayMember; }
      set { myLbComboBox1.DisplayMember = value; }
  }
  </code></pre>
  
  <p>As a result, I can see these properties on the property grid but as can be seen on the image below, they are like <code>textfields</code> and <code>DataSource</code> is not settable.</p>
  
  <p>What am I missing here?</p>
  
  <p><a href="https://i.stack.imgur.com/5LLhK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5LLhK.png" alt="enter image description here"></a></p>