110,538
社区成员
发帖
与我相关
我的任务
分享
string str2 = "select * from [user] ";
da.SelectCommand = new OleDbCommand(str2 ,conn );
scb = new OleDbCommandBuilder(da );
da.Fill(ds );
DataRow newrow = ds.Tables[0].NewRow();
//newrow["userID"] = "6";
newrow[0] = TextBox1.Text;//"nname""pwd""zhiwei""wenti""dan""youx"
newrow[1] = TextBox2.Text;
newrow[2] = "普通用户";
newrow[3] = TextBox4.Text;
newrow[4] = TextBox5.Text;
newrow[5] = TextBox6.Text;
ds.Tables[0].Rows.Add(newrow );
da.Update(ds);