DropDownList显示符合条件的值
DropDownList已经邦订数据如下:
DropDownList2.DataSource = dsInit;
DropDownList2.DataTextField = "Manager";
DropDownList2.DataValueField = "ID";
DropDownList2.DataBind();
DropDownList2.Items.Insert(0, "");
dsInit 为DS数据源,现在我想在邦订了数据的DropDownList上显示符合条件值.
如邦订数据中有
"张一" 2
"张二" 4
"张三" 6
"张四" 11
我想在一文件框中输入4,对应该的就在DropDownList中显示出"张二"在取值是取4,在文件框中输入5时,因
DropDownList中无此项DropDownList显示空.
如何做到?