private void gvEmployees_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0) { int Empid = Convert.ToInt32(gvEmployees.Rows[e.RowIndex].Cells["EmpId"].Value); EmployeeEntry st = new EmployeeEntry(); st.EmployeeId = Empid; st.Operation = "Update"; st.Show(); this.Close(); } }
private void addToolStripMenuItem3_Click(object sender, EventArgs e) { EmployeeEntry ne = new EmployeeEntry(); ne.Show(); }