DropDownList动态绑定后,怎么设置默认项
this.DDL.DataSource = ds.Tables["aa"].DefaultView;
this.DDL.DataTextField = "工号";
this.DDL.DataBind();
int index = this.DDL.Items.IndexOf(this.DDL.Items.FindByText("想要显示的文本"));
DDL.SelectedIndex = index;

this.DDL.DataSource = ds.Tables["aa"].DefaultView;
this.DDL.DataTextField = "工号";
this.DDL.DataBind();
int index = this.DDL.Items.IndexOf(this.DDL.Items.FindByText("想要显示的文本"));
DDL.SelectedIndex = index;
