private void button3_Click(object sender, EventArgs e) { btc = new BloodTranfuseController(); dataGridView1.DataSource = null; dataGridView1.DataSource = btc.SearchID(textBox1.Text).Tables[0]; }
private void BloodTransfusion_Load(object sender, EventArgs e) { btc = new BloodTranfuseController(); dataGridView1.DataSource = btc.AllTransfusion().Tables[0]; }