示例#1
0
 private void ShowEditor(Rectangle bounds)
 {
     ActiveEditor = _Item.CreateEditor();
     ActiveEditor.Properties.LockEvents();
     ActiveEditor.Parent = view.GridControl;
     ActiveEditor.Properties.Assign(_Item);
     ActiveEditor.Properties.AutoHeight = false;
     ActiveEditor.Location = bounds.Location;
     ActiveEditor.Size     = bounds.Size;
     ActiveEditor.CreateControl();
     ActiveEditor.EditValue = EditValue;
     ActiveEditor.SendMouse(ActiveEditor.PointToClient(Control.MousePosition), Control.MouseButtons);
     ActiveEditor.Properties.UnLockEvents();
 }
 private void ShowEditor(Rectangle bounds)
 {
     ActiveEditor = _Item.CreateEditor();
     ActiveEditor.Properties.LockEvents();
     ActiveEditor.Parent = _VGrid;
     ActiveEditor.Properties.Assign(_Item);
     ActiveEditor.Properties.AutoHeight = false;
     ActiveEditor.BackColor             = _VGrid.ViewInfo.PaintAppearance.FocusedRow.BackColor;
     ActiveEditor.Location = bounds.Location;
     ActiveEditor.Size     = bounds.Size;
     ActiveEditor.CreateControl();
     ActiveEditor.EditValue = EditValue;
     ActiveEditor.SendMouse(ActiveEditor.PointToClient(Control.MousePosition), Control.MouseButtons);
     ActiveEditor.Properties.UnLockEvents();
 }