aspx
<select id="ddColumns" name="ddColumns" runat="server" multiple style="width: 400px;"
data-placeholder="All" class="chosen-select">
</select>
DLL
ddColumns.DataSource = AvailableColumns
ddColumns.DataTextField = "ColumnNames"
ddColumns.DataValueField = "ColumnNames"
ddColumns.DataBind()
The code that loops through each item in dropdown
For Each selection As ListItem In ddColumns.Items
If selection.Selected Then
ddGroupBy.Items.Add(selection.Value)
End If
Next
Instead of looping through each item I need to loop through only the selected ones in the Placeholder dropdownlist.
Please advise.