title: How to get Selected Listbox Items using devexpress in winforms app?
body: <p>I am trying to get selected item text. I used this below code</p>
  
  <pre><code>MessageBox.Show(listBoxColumnHeaders.SelectedItems);
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <p><code>Devexpress.XtraEditors.BaseListboxControl+SelectedItemCollection</code></p>
  
  <p>But my text is <strong>Country</strong></p>
  
  <p><strong>Update</strong></p>
  
  <p>I add listbox items from another class. That class called <code>FilterColumnHeader</code> using below code</p>
  
  <pre><code>FilterControl fc = Application.OpenForms.OfType&lt;FilterControl&gt;().SingleOrDefault();
  List&lt;FilterColumnHeader&gt; headers = new List&lt;FilterColumnHeader&gt;();
  while (rd.Read())
  {                                                
      headers.Add(new FilterColumnHeader { typeOfHeader = rd["type"].ToString(), columnHeadersName = rd["AsHeading"].ToString() });
  
  }
  fc.listBoxColumnHeaders.DisplayMember = "columnHeadersName";
  fc.listBoxColumnHeaders.ValueMember = "typeOfHeader";
  fc.listBoxColumnHeaders.DataSource = headers;
  </code></pre>
  
  <p>Now When I try to print using this below code, </p>
  
  <pre><code> MessageBox.Show(""+ listBoxColumnHeaders.SelectedItems[0].ToString());
  </code></pre>
  
  <p>It is showing in message box like below</p>
  
  <pre><code>`ProjectName.FilterColumnHeader`
  </code></pre>