if(dtDataSource.Rows[i][this.ValueMember].ToString().Trim()==_Value.Trim())
{
this.SelectedIndex=i;
}
else
{
this.SelectedIndex=-1;
this.Text=_Value;
}
把这个this.ValueMember改为你表里实际的列名
{
this.SelectedIndex=i;
}
else
{
this.SelectedIndex=-1;
this.Text=_Value;
}
把这个this.ValueMember改为你表里实际的列名
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货