- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
string[] groups = LoadAllGroups();
var dt = new DataTable();
dt.Columns.Add("TEXT", typeof(string));
foreach (string g in groups)
{
DataRow dr = dt.NewRow();
dr["TEXT"] = g;
dt.Rows.Add(dr);
}
var dv = new DataView(dt) { Sort = "TEXT" };
adGroups_ddl.DataSource = dv;
adGroups_ddl.DataBind();