ASP.NET Dropdownlist with groups
looks like it’s not possible to have optgroups in an ASP.NET Dropdownlist without subclassing. Today I found a very useful snippet on stackoverflow that allows to group items on client side and I want to share it with the world: server: private void AddItemToList(DropDownList list, string title, string value, string group...
2014, Mar 17 — 1 minute read