private void btnThem_Click(object sender, EventArgs e) { IteamHoaDon frm = new IteamHoaDon(""); frm.ShowDialog(); if (frm.check == true) { DataTable DT = _adapterHD.GetData(); showHD.DataSource = DT.DefaultView; } }
private void btn_Click(object sender, EventArgs e) { string maHD = showHD.CurrentRow.Cells["MaHD"].Value.ToString(); IteamHoaDon frm = new IteamHoaDon(maHD); frm.ShowDialog(); if (frm.check == true) { DataTable DT = _adapterHD.GetData(); showHD.DataSource = DT.DefaultView; } }