我尝试在windows mobile 5.0掌上电脑中填充组合框,但我有这个错误:
Value does not fall within the expected range.
从webservice上的数据集返回数据表:
方法是:
public void loadComboBox(ref ComboBox ComboBoxGen, string DisplayText, string Value,DataTable dt)
{
ComboBoxGen.DataSource = dt;
ComboBoxGen.DisplayMember = DisplayText;
ComboBoxGen.ValueMember = Value;
}
答案 0 :(得分:0)