ds.ReadXml(@"c:\xml.xml");
dt_p=ds.Tables["个人信息"];
this.dataGrid1.DataSource=dt_p;
this.textBox1.DataBindings.Add(new Binding("Text",dt_p, "卡号"));
this.textBox2.DataBindings.Add(new Binding("Text",dt_p, "姓名"));
this.textBox3.DataBindings.Add(new Binding("Text",dt_p, ".年龄"));
this.textBox4.DataBindings.Add(new Binding("Text",dt_p, ".性别"));
===上面是textbox的数据绑定现在添加记录
DataRow dRow = dt_p.NewRow();
dRow["卡号"] ="";
dRow["姓名"] ="";
dRow["年龄"] ="";
dRow["性别"] ="";
dt_p.Rows.Add(dRow);
..接下来应该怎么写,让textbox指向这条记录?
谢谢