private void btnthem_Click(object sender, EventArgs e) { string err = ""; if (!db.insertLop(ref err, txtmalop.Text, txttenlop.Text, txtsiso.Text, txtmakhoahoc.Text, txtmanganh.Text)) { MessageBox.Show(err); } else { DataBind(); MessageBox.Show("Thêm thành công."); } //DataBind(); }