private void dgValue_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 15 && e.RowIndex >= 0) { string strCodeSenderAddress = dgValue.Rows[e.RowIndex].Cells["发码器编号"].Value.ToString(); FrmEmpInfo frm = new FrmEmpInfo(strCodeSenderAddress, false); frm.ShowDialog(); frm.Dispose(); } }
private void dgvRTInfo_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dgvkj128Data.Columns[e.ColumnIndex].HeaderText.Equals("查看员工信息") && e.RowIndex >= 0) { string strCodeSenderAddress = dgvkj128Data.Rows[e.RowIndex].Cells["EmpID"].Value.ToString(); FrmEmpInfo frm = new FrmEmpInfo(strCodeSenderAddress, true); frm.ShowDialog(); frm.Dispose(); } }