DataSet dsCurrency = new DataSet();
dsCurrency = ParamCurrency.SelectCurrencys();
ddCurrencyField.DataSource = dsCurrency;
ddCurrencyField.DataTextField = "CurrencyName";
ddCurrencyField.DataValueField ="CurrencyCode";
ddCurrencyField.DataBind();
如何選擇默認值使用C#的下拉列表控制?如何將默認值設置爲C#中的下拉列表?
... _select_或集? –
要麼通過代碼綁定後插入第0個元素,要麼將數據項添加到數據源 –
通過下拉列表您是指組合框? – Phiter