最近在项目中,要实现对DropDownList中的Option进行分组的功能。大家都知道传统的DropDownList是无法实现,以及对DropDownList的排序问题。所以么法子啊, I make my own.
效果图:
代码如下:
1
DDL 控件类:
2
3
public class DDL : DropDownList
4
}
2
3
4