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