2

I want to add optgroup to the "HtmlSelect" dynamicly with c#. I am using following code for adding items but i can't find documentation for adding optgroup with c#. Thanks in advance.

   Select1.Items.Add(new ListItem("SomeData", "1")); 
Murat Tutu
  • 41
  • 2
  • 4
  • Possible duplicate of [How can I add option groups in ASP.NET drop down list?](http://stackoverflow.com/questions/16167862/how-can-i-add-option-groups-in-asp-net-drop-down-list) – Pete Oct 12 '15 at 10:40

0 Answers0