private void extInfoDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.Equals(null) || this.obeyEvnts == false || this.canEdit == false) { return; } if (e.RowIndex < 0) { return; } if (this.canEdit == false) { cmnCde.showMsg("You don't have permission to perform" + " this action!\nContact your System Administrator!", 0); return; } if (this.extInfoDataGridView.Rows[e.RowIndex].Cells[4].Value == null) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[4].Value = "-1"; } if (this.extInfoDataGridView.Rows[e.RowIndex].Cells[5].Value == null) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[5].Value = "-1"; } if (this.extInfoDataGridView.Rows[e.RowIndex].Cells[0].Value == null) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[0].Value = string.Empty; } if (this.extInfoDataGridView.Rows[e.RowIndex].Cells[2].Value == null) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[2].Value = string.Empty; } if (this.extInfoDataGridView.Rows[e.RowIndex].Cells[3].Value == null) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[3].Value = string.Empty; } if (e.ColumnIndex == 1) { int[] selVals = new int[1]; selVals[0] = cmnCde.getPssblValID(this.extInfoDataGridView.Rows[e.RowIndex].Cells[0].Value.ToString(), cmnCde.getLovID("Extra Information Labels")); DialogResult dgRes = cmnCde.showPssblValDiag( cmnCde.getLovID("Extra Information Labels"), ref selVals, true, false); if (dgRes == DialogResult.OK) { for (int i = 0; i < selVals.Length; i++) { this.extInfoDataGridView.Rows[e.RowIndex].Cells[0].Value = cmnCde.getPssblValNm(selVals[i]); } } } }