title: How to make dropdownlist listitems invisible
body: <p>I have two related <code>DropDownList</code> controls. Depending on the selection in the parent <code>DropDownList</code>, I want to hide some items in the child <code>DropDownList</code> in case they were not related to the selected item in the parent <code>DropDownList</code>.</p>
  
  <p>I was trying something along the lines of:</p>
  
  <pre><code>foreach(ListItem item in ddlChildren.Items)
  {
       item.Visible = /* some logic here */
  }
  </code></pre>
  
  <p>However the <code>Visible</code> property doesn't seem to be available here.</p>
  
  <p>Could someone please suggest how I would go about achieving this functionality?</p>