表中添加了记录之后为什么总是只有一行...
表中添加了记录之后为什么总是只有一行...
DataRow row=ds.Tables["tbzz"].NewRow();
row["saleid"]=pp;
row["zzdm"]=qianstring;
row["zzname"]=houstring;
ds.Tables["tbzz"].Rows.Add(row);
this.dataGrid1.DataSource=ds.Tables["tbzz"];
this.dataGrid1.SetDataBinding(ds,"tbzz");