Export listbox selected items to datatable
<p>I have problems to export selected listboxitems to a datatable,I want to have multiple selected plants to a datatable,Can you please help?  </p>

<pre><code>   int numberofplants = 0;

        foreach (ListItem li in lbxPlants.Items)
        {
            if (li.Selected)
            {
                numberofplants++;
                DataTable dtplants = new DataTable();
                dtplants.Columns.Add("Plants");
                DataRow drplants = dtplants.NewRow();
                drplants[0] = li.Value;
                dtplants.Rows.Add(drplants);

            }
        }
</code></pre>
