用c#做系统时此句 this.tbid.Text = ds.Tables[0].Rows[0]["书号"].ToStri
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:数学作业 时间:2024/05/02 04:45:23
用c#做系统时此句 this.tbid.Text = ds.Tables[0].Rows[0]["书号"].ToString();此句说“在位置0 处没有该行
这个意思就是ds.Tables[0]有问题,你可以写成这样试试:
datatable dt=ds.tables[0];
if (dt.rows.count>0)
this.tbid.Text = dt.Rows[0]["书号"].ToString();
else
this.tbid.Text="此数据集是空的!"
datatable dt=ds.tables[0];
if (dt.rows.count>0)
this.tbid.Text = dt.Rows[0]["书号"].ToString();
else
this.tbid.Text="此数据集是空的!"
用c#做系统时此句 this.tbid.Text = ds.Tables[0].Rows[0]["书号"].ToStri
this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"
this.txtID.Text = ds.Tables["stuinfo"].Rows[0]["stuid"].ToSt
Goodscode = this.dataGridView1.Rows[i].Cells[0].Value.ToStri
ds.Tables[0].Rows.ds.Tables[0].Clone()是什么意思?
ds.Tables.Count > 0 && ds.Tables[0].Rows.Count == 1
ds.Tables[0].Rows.Count>0错误
if (ds.Tables[0].Rows.Count >
ds.Tables[0].Rows.Count > 1
c#中 Double num1 = Convert.ToDouble(this.textBox1.Text.ToStri
Tables[0].Rows.count是什么意思
ask_word.Text = name.dt.Rows[0][ psnel_retakepwd ].ToString(