private void button_Them_Click(object sender, EventArgs e) { Detail_KH f = new Detail_KH(""); f.D += new Detail_KH.SHow(ShowDTGV); f.ShowDialog(); }
private void button_Sua_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection r = DGV_KH.SelectedRows; if (r.Count == 1) { Detail_KH f = new Detail_KH(r[0].Cells["MaTK"].Value.ToString()); f.D += new Detail_KH.SHow(ShowDTGV); f.ShowDialog(); } else { MessageBox.Show("Click vào 1 Row trước khi muốn Edit"); } }