最近在项目中,要实现对DropDownList中的Option进行分组的功能。大家都知道传统的DropDownList是无法实现,以及对DropDownList的排序问题。所以么法子啊,DropDownList--有关于OptionGroup,Sort的话题  I make my own.
效果图:
  

DropDownList--有关于OptionGroup,Sort的话题

代码如下:

.
DropDownList--有关于OptionGroup,Sort的话题NewDropDownList UI类:
DropDownList--有关于OptionGroup,Sort的话题
DropDownList--有关于OptionGroup,Sort的话题 
public partial class NewDropDownList : System.Web.UI.Page
    }
  1DropDownList--有关于OptionGroup,Sort的话题DDL 控件类:
  2DropDownList--有关于OptionGroup,Sort的话题
  3DropDownList--有关于OptionGroup,Sort的话题public class DDL : DropDownList
  4    }

相关文章: