title: How to retrieve texts for CheckedItems in CheckedListBox
body: <p>I have a CheckBoxList which contain dynamic data.Now i want to get the list of selected item from CheckBoxList. i am using following code.</p>
  
  <pre><code>for (int i = 0; i &lt; chkTblListDb001.Items.Count; i++)
  {
      if (chkTblListDb001.GetItemChecked(i))
      {
            FirstTableSelectedColumns += chkTblListDb001.Items[i].ToString() + ",";
            MessageBox.Show(FirstTableSelectedColumns);
      }
  }
  </code></pre>
  
  <p>but is return (in FirstTableSelectedColumns variable) "System.Data.DataRowView,System.Data.DataRowView,"</p>
  
  <p>When I am using the this code </p>
  
  <pre><code>string test = "you've selected :";
  
  foreach (ListItem item in theCheckBoxList.Items)
  {
      test += item.Selected ? item.Value + ", " : "";
  }
  labelResult.Text = test;
  </code></pre>
  
  <p>its give me the following error that </p>
  
  <blockquote>
    <p>ListItem not found.</p>
  </blockquote>