这两个语句的功能有什么不同?
this.textBox1.DataBindings.Add("Text", this.dataSet1,"t1.rno");
this.textBox1.Text = this.dataSet1.Tables[0].Rows[0]["rno"].ToString();
结果都是一样的哈
this.textBox1.DataBindings.Add("Text", this.dataSet1,"t1.rno");
this.textBox1.Text = this.dataSet1.Tables[0].Rows[0]["rno"].ToString();
结果都是一样的哈
dataSet1变了,第一种方式的text会跟着变,下面一种不会!
下一种this.textBox1变了 this.dataSet1不变