private void WidthOutput() { string mMain = ""; for (int i = 0; i < GV_Main.Columns.Count; i++) { mMain += "FieldWidthMain.Add(\"" + GV_Main.Columns[i].FieldName + "\"," + GV_Main.Columns[i].Width + ");\r\n"; } ShowBosxMemo sbm = new ShowBosxMemo(); sbm.SetMemo = mMain; sbm.ShowDialog(); }
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 == "XR006") { GV_Main.FocusedColumn = hitInfo.Column; GV_Main.FocusedRowHandle = hitInfo.RowHandle; //GV_Main.ShowEditor(); ShowBosxMemo sbm = new ShowBosxMemo(); sbm.SetMemo = GV_Main.GetRowCellValue(hitInfo.RowHandle, "XR006").ToString(); sbm.ShowDialog(); DXMouseEventArgs.GetMouseArgs(e).Handled = true; //GV_Main.CloseEditor(); } }
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; } }