
如何在textBox中显示在数据库中查询到的数据C#?
如何在textBox中显示在数据库中查询到的数据c#stringstrsql="selectLysycfrom零售商whereLzc=1";DataSetds=newDa...
如何在textBox中显示在数据库中查询到的数据c#
string strsql = "select Lysyc from 零售商 where Lzc=1";
DataSet ds = new DataSet();
ds = DataAccess.retSet(strsql);
// textBox2.Text =ds.Tables[0].Rows.ToString(); 展开
string strsql = "select Lysyc from 零售商 where Lzc=1";
DataSet ds = new DataSet();
ds = DataAccess.retSet(strsql);
// textBox2.Text =ds.Tables[0].Rows.ToString(); 展开
2个回答
展开全部
textBox.text=ds.Tables[0].Rows["这里面是表的第几行,一般是0"]["这里是表的第几列"].ToString();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询