/// <summary> /// 预警一览 单元格单击 /// Created:20170609(ChengMengjia) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void superGridWarning_CellClick(object sender, GridCellClickEventArgs e) { if (e.GridCell.GridColumn.Name == "Operate") { string WorkType = e.GridCell.GridRow.Cells["WarnningName"].Value.ToString(); MainFrame mainForm = (MainFrame)this.Parent.TopLevelControl; switch (WorkType) { case "项目交付物预警": CurrentNode = new WBSBLL().GetNode(e.GridCell.GridRow.Cells["Id"].Value.ToString()); mainForm.RelaodTree(); mainForm.OpenNormalOperation(); break; case "项目问题预警": Forms.Others.Trouble form = new Forms.Others.Trouble(""); form.TroubleId = e.GridCell.GridRow.Cells["Id"].Value.ToString(); mainForm.ShowChildForm(form); break; } } }
private void superGridControl3_CellClick(object sender, GridCellClickEventArgs e) { if (Dbers.GetInstance().SelfDber.Get <CmcsCMEquipment>(this.CurrentSampler.Parentid).EquipmentCode == "皮带采样机") { InfBeltSampleUnloadCmd sampleUnloadCmd = e.GridCell.GridRow.DataItem as InfBeltSampleUnloadCmd; foreach (GridRow gridRow in superGridControl3.PrimaryGrid.Rows) { InfBeltSampleUnloadCmd beltSampleUnloadCmd = gridRow.DataItem as InfBeltSampleUnloadCmd; gridRow.Checked = (beltSampleUnloadCmd != null && sampleUnloadCmd.Id == beltSampleUnloadCmd.Id); } } else if (Dbers.GetInstance().SelfDber.Get <CmcsCMEquipment>(this.CurrentSampler.Parentid).EquipmentCode == "汽车机械采样机") { InfQCJXCYUnLoadCMD sampleUnloadCmd = e.GridCell.GridRow.DataItem as InfQCJXCYUnLoadCMD; foreach (GridRow gridRow in superGridControl3.PrimaryGrid.Rows) { InfQCJXCYUnLoadCMD qcjxcySampleUnloadCmd = gridRow.DataItem as InfQCJXCYUnLoadCMD; gridRow.Checked = (qcjxcySampleUnloadCmd != null && sampleUnloadCmd.Id == qcjxcySampleUnloadCmd.Id); } } }
private void _grid_CellClick(object sender, GridCellClickEventArgs e) { _gridItemDetails.Item = e.GridCell?.GridRow.Tag; }
private void Cellgrid_CellClick(object sender, GridCellClickEventArgs args) { eventsTxtBox.Text += "(" + args.RowIndex + "," + args.ColumnIndex + ")" + "\nCell Clicked"; }
void gridControl1_CheckBoxClick(object sender, GridCellClickEventArgs e) { this.gridControl1.BeginUpdate(); switch (e.RowIndex) { case 4: for (int i = 5; i <= 8; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 10: for (int i = 11; i <= 19; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 21: for (int i = 22; i <= 30; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 32: for (int i = 33; i <= 41; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 46: for (int i = 47; i <= 55; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 57: for (int i = 58; i <= 66; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 68: for (int i = 69; i <= 77; i++) { this.gridControl1.HideRows[i] = !this.gridControl1.HideRows[i]; } break; case 82: this.gridControl1.HideRows[e.RowIndex + 1] = !this.gridControl1.HideRows[e.RowIndex + 1]; break; } this.gridControl1.EndUpdate(true); this.gridControl1.Refresh(); }
private void grd_CellClick(object sender, GridCellClickEventArgs e) { lblsdrrno.Text = grd.PrimaryGrid.GetCell(e.GridCell.RowIndex, grd.PrimaryGrid.Columns["grdColSDRR"].ColumnIndex).Value.ToString(); lblindex.Text = grd.PrimaryGrid.GetCell(e.GridCell.RowIndex, grd.PrimaryGrid.Columns["grdColindex"].ColumnIndex).Value.ToString(); }
private void GridCutLine_CheckBoxClick(object sender, GridCellClickEventArgs e) { int nRow = 0; nRow = e.RowIndex; float fX1 = 0, fY1 = 0, fX2 = 0, fY2 = 0, PicX = 0, PicY = 0; if (nRow == 0) { return; } if (nWaferSize == SIZE_12INCH) { PicX = 20; PicY = 20; fX1 = Convert.ToSingle(GridCutLine[nRow, 1].Text); fX1 = (float)(fX1 * RATIO_12INCH) + PicX; fY1 = Convert.ToSingle(GridCutLine[nRow, 2].Text); fY1 = (float)(fY1 * RATIO_12INCH) + PicY; fX2 = Convert.ToSingle(GridCutLine[nRow, 3].Text); fX2 = (float)(fX2 * RATIO_12INCH) + PicX; fY2 = Convert.ToSingle(GridCutLine[nRow, 4].Text); fY2 = (float)(fY2 * RATIO_12INCH) + PicY; } if (nWaferSize == SIZE_8INCH) { PicX = 120; PicY = 120; fX1 = Convert.ToSingle(GridCutLine[nRow, 1].Text); fX1 = (float)(fX1 * RATIO_8INCH) + PicX; fY1 = Convert.ToSingle(GridCutLine[nRow, 2].Text); fY1 = (float)(fY1 * RATIO_8INCH) + PicY; fX2 = Convert.ToSingle(GridCutLine[nRow, 3].Text); fX2 = (float)(fX2 * RATIO_8INCH) + PicX; fY2 = Convert.ToSingle(GridCutLine[nRow, 4].Text); fY2 = (float)(fY2 * RATIO_8INCH) + PicY; } if (GridCutLine[nRow, 5].CheckBoxOptions.FlatLook == true) { GridCutLine[nRow, 5].CheckBoxOptions.FlatLook = false; SetDrawLine(fX1, fY1, fX2, fY2, 1, Color.White); } else { GridCutLine[nRow, 5].CheckBoxOptions.FlatLook = true; SetDrawLine(fX1, fY1, fX2, fY2, 1, Color.Black); } }
void gridControl1_CellClick(object sender, GridCellClickEventArgs e) { this.gridControl1.Refresh(); }
private void grid_CheckBoxClick(object sender, GridCellClickEventArgs e) { TraceUtil.TraceCurrentMethodInfoIf(traceDebug, this, e); AppendOutput("CheckBoxClick", e); }
private void settingsGrid_CellClick(object sender, GridCellClickEventArgs e) { int rowIndex = e.RowIndex; int colIndex = e.ColIndex; Control control = settingsGrid[rowIndex, colIndex].Control; if (control == null) return; //вычислим координаты внутри контрола Point point = new Point(e.MouseEventArgs.X - control.Location.X, e.MouseEventArgs.Y - control.Location.Y); Button button = FindButton(control.Controls, point); if (button != null) { button.PerformClick(); } }
/// <summary> /// Writes the Cell double Clik event in output /// </summary> private void gridControl1_CellDoubleClick(object sender, GridCellClickEventArgs e) { System.Diagnostics.Debug.WriteLine("gridControl1_CellDoubleClick: " + e.ToString()); e.Cancel = true; // Avoid subsequent CellClick being raised. }
/// <summary> /// Writes the CellClik event in output /// </summary> private void gridControl1_CellClick(object sender, GridCellClickEventArgs e) { System.Diagnostics.Debug.WriteLine("gridControl1_CellClick: " + e.ToString()); }
private void superGridControl1_CellClick(object sender, GridCellClickEventArgs e) { btnLuu.Enabled = true; btnHuy.Enabled = true; btnXoa.Enabled = true; }
private void gridMonitorFaxes_CellClick(object sender, GridCellClickEventArgs e) { }
private void HandleAClick(object sender, GridCellClickEventArgs e) { if (e.MouseEventArgs.Button == MouseButtons.Left && e.RowIndex == 0 && e.ColIndex > 0) { SortCol(e.ColIndex, gridOutlookList); } }