title: Add new items to checkboxlist dynamically from a List<> C#
body: <p>I don't want to add items from the collection HARD-CODED style, I want to populate them from a List&lt;> when a button is pressed. </p>
  
  <p>First i took data from the list like this:</p>
  
  <pre><code>private List&lt;User&gt; _users = new List&lt;User&gt;()
  
  foreach (User user in _users) {
      int index = checkedListBoxDepts.Items.Add(user.UserName);
      upd.checkedListBoxDepts.Items[index] = user;
  }
  </code></pre>
  
  <p>FOR the retrieval of checked items: (I put them in a List of type string):</p>
  
  <pre><code>List&lt;string&gt; Names = new List&lt;string&gt;();
  
  foreach (string s in checkedListBoxDepts.CheckedItems) {
      Names.Add(s);
  }
  </code></pre>