private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (dataGridView1.Columns[e.ColumnIndex].Name == "Column4") { CreateStaff st = new CreateStaff(this); st.OpenData(dataGridView1.CurrentRow.Cells[1].Value.ToString()); st.ShowDialog(); } }
private void button1_Click(object sender, EventArgs e) { CreateStaff st = new CreateStaff(this); st.ShowDialog(); }