this._dataset = new DataSet(); this._sdap.Fill(this._dataset, "學生表"); this._sdap.FillSchema(this._dataset.Tables[0], SchemaType.Mapped); this._dr = this._dataset.Tables[0].Rows.Find(this._intid); this._dr["姓名"] = txt姓名.Text.Trim(); this._dr["年齡"] = int.Parse(txt年齡.Text.Trim()); this._dr["班級"] = int.Parse(cbb班級.SelectedValue.ToString()); this._dataset.Tables["學生表"].Rows.Remove(this._dr); return this._sdap.Update(this._dataset, "學生表") > 0 ? true : false;為什么dataset中的信息刪除掉了 卻在更新數據庫的時候出錯了 ?為什么? 哪位高手指點下??!
2 回答
- 2 回答
- 0 關注
- 463 瀏覽
添加回答
舉報
0/150
提交
取消