private void btn_xoa_Click(object sender, EventArgs e) { if (txt_ma_khachhang.Text.Length > 0) { dal.Delete_kh(txt_ma_khachhang.Text.Trim()); BindDataGridView(); ResetControl(); btn_xoa.Enabled = false; btn_sua.Enabled = false; } }
public bool Delete_kh(string ma_kh) { return(KH.Delete_kh(ma_kh)); }