示例#1
0
 private void dgDivisionList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgDivisionList.SelectedRows.Count > 0)
     {
         frmDivisionEdit pDivisionEdit = new frmDivisionEdit(this);
         pDivisionEdit.DivisionCode = dgDivisionList.SelectedRows[0].Cells[0].Value.ToString();
         pDivisionEdit.ShowDialog();
     }
 }
示例#2
0
 private void tbtnModify_Click(object sender, EventArgs e)
 {
     if (dgDivisionList.SelectedRows.Count > 0)
     {
         frmDivisionEdit pDivisionEdit = new frmDivisionEdit(this);
         pDivisionEdit.DivisionCode = dgDivisionList.SelectedRows[0].Cells[0].Value.ToString();
         pDivisionEdit.ShowDialog();
     }
 }