da.SelectCommand = new SqlCommand("select * from student ",cs); DataTable dt = new DataTable(); ds.Clear(); da.Fill(ds); dt=ds.Tables[0]; dataGridView1.DataSource = ds.Tables[0]; tblnamesbs.DataSource = dt; this.textBox1.DataBindings.Add(Text,this.tblnamesbs,firstname,true);//error this.textBox2.DataBindings.Add(Text,this.tblnamesbs,lastname,true);
this.textBox1.DataBindings.Clear(); this.textBox1.DataBindings.Add(...);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)