optgroup and HTMLselect or DropDownList

  • Thread starter Thread starter Moshe Plotkin
  • Start date Start date
M

Moshe Plotkin

B"H

any way to group options in either the HTMLSelect or DropDownList?

I would like to bind one of those controls to my data and then group by a
particular field
so that the output should look like

<select>
<optgroup lable="Group 1">
<option value="1">Text 1</option>
<option value="2">Text 2</option>
</optgroup>
</select>
 
Back
Top