private void btnUnAll_Click(object sender, EventArgs e) { for (int i = 0; i < GV_Main.RowCount; i++) { GV_Main.SetRowCellValue(i, "Selected", "N"); } }
private void SetUnAll() { for (int i = 0; i < GV_Main.RowCount; i++) { GV_Main.SetRowCellValue(i, "Select", "N"); } }
private void GV_Main_MouseDown(object sender, MouseEventArgs e) { GridHitInfo hitInfo = GV_Main.CalcHitInfo(e.Location); if (hitInfo == null || hitInfo.Column == null) { return; } if (hitInfo.Column.FieldName == "XR005") { GridViewInfo info = (GridViewInfo)GV_Main.GetViewInfo(); if (info != null) { GridCellInfo cell = info.GetGridCellInfo(hitInfo.RowHandle, hitInfo.Column); if (cell != null) { int mGrade = ((e.X - cell.Bounds.X) / 32) + 1; if (e.Button == MouseButtons.Right) { mGrade = mGrade * -1; } GV_Main.SetRowCellValue(hitInfo.RowHandle, "XR005", mGrade); DXMouseEventArgs.GetMouseArgs(e).Handled = true; } } } else if (hitInfo.Column.FieldName == "XR006") { GV_Main.FocusedColumn = hitInfo.Column; GV_Main.FocusedRowHandle = hitInfo.RowHandle; ShowBosxMemo sbm = new ShowBosxMemo(); sbm.SetCanEdit = true; sbm.SetMemo = GV_Main.GetRowCellValue(hitInfo.RowHandle, "XR006").ToString(); if (sbm.ShowDialog() == DialogResult.OK) { GV_Main.SetRowCellValue(hitInfo.RowHandle, "XR006", sbm.GetReturn); } DXMouseEventArgs.GetMouseArgs(e).Handled = true; } }