title: How to add item to Repeater control manually
body: <p>First of all:</p>
  
  <ul>
  <li>_ddlOptions is drop down list</li>
  <li>_selectedOptions is repeater control</li>
  </ul>
  
  <p>and it's just provisional code of my final control.</p>
  
  <p>What I want to do is to get data for _ddlOption on !IsPostBack. There is Add button that enables user to move selected drop down item to repeater control.</p>
  
  <p>It the following way of updating Repeater.Items correct? I found many solution of adding/removing elements manually using DataSource, but here my DataSource is null, as I set it only on !IsPostBack.</p>
  
  <pre><code>    protected void Page_Load(object sender, EventArgs e)
      {
          if (!IsPostBack)
          {
              _ddlOptions.DataSource = new[] { 1, 2, 3 };
              _ddlOptions.DataBind();
          }
      }
  
      protected void OnAdd(object sender, EventArgs e)
      {
          var list = new ArrayList(_selectedOptions.Items);
          list.Add(_ddlOptions.SelectedItem);
          _ddlOptions.Items.RemoveAt(_ddlOptions.SelectedIndex);
          _selectedOptions.DataSource = list;
          _selectedOptions.DataBind();
      }
  </code></pre>