我有一个像这样绑定的下拉列表。
string qissuetype = "select trim(empname),empfullname from empmast where " + ListBox1.SelectedValue + "<3 order by empname";
OdbcDataAdapter adpState = new OdbcDataAdapter(qissuetype, con1);
DataSet ds = new DataSet();
adpState.Fill(ds);
drpResponsible.DataSource = ds;
drpResponsible.DataTextField = "trim(empname)";
drpResponsible.DataValueField = "empfullname";
drpResponsible.DataBind();
我在绑定时修剪了 empname,但它仍然显示前导和尾随空格(如果存在)。
任何人都可以帮我这样做吗?提前致谢