作业帮 > 综合 > 作业

this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/04/29 17:24:11
this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"].ToString();
this.TbEmployeesName.Text = ds.Tables[0].Rows[0][
ds是DataSet,多个DataTable的集合
ds.Tables[0].Rows[0]["StaffName"]表示DataSet的第一个Table的第一行的StaffName的值.
.ToString()在转换成字符串.
this.TbEmployeesName.Text 当前页面id为TbEmployeesName的文本框显示的文字.