日期:2014-05-17  浏览次数:20688 次

为什么DataRow[] drs = ds.Tables[0].Select查询不出数据

------解决方案--------------------
晕,你没有写 .Text
textBox总行编号.Text

再不行试试这个:
DataRow[] drs = ds.Tables[0].Cast<DataRow>().Where(x => x["w_yhbh"].ToString().Trim() == textBox总行编号.Text).ToArray();