Beispiel #1
0
 private void staffGridView_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         DataGridViewRow row = staffGridView.Rows[e.RowIndex];
         StafID = Convert.ToInt32((row.Cells["staffId"].Value.ToString()));
         Edit_Staff es = new Edit_Staff(StafID);
         es.Show();
     }
 }
Beispiel #2
0
 private void Edit_Click(object sender, EventArgs e)
 {
     if (StafID > 0)
     {
         Edit_Staff es = new Edit_Staff(StafID);
         es.Show();
     }
     else
     {
         MessageBox.Show("Select Row from Table");
     }
 }