private void Form1_Load(object sender, EventArgs e)
{
1.  newMode = false;
2.  strSql = "SELECT * FROM stTable";
3.  con = new SqlConnection(strCon);
4.  con.Open();
5.  da = new SqlDataAdapter(strSql, con);
6.  da.Fill(ds, "stTable");
7.  textBox2.DataBindings.Add(new Binding("Text", ds, "stTable.stNo"));
8.  textBox3.DataBindings.Add(new Binding("Text", ds, "stTable.Name"));
9.  textBox4.DataBindings.Add(new Binding("Text", ds, "stTable.Ave"));
10. checkBox1.DataBindings.Add(new Binding("Checked", ds, "stTable.Sex"));
11. textBox5.DataBindings.Add(new Binding("Text", ds, "stTable.numUnit"));
12. con.Close();     
}
