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"));
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"));