Beispiel #1
0
        protected virtual void grid_DragEnter(GridVirtual sender, System.Windows.Forms.DragEventArgs e)
        {
            Position pointPosition = sender.PositionAtPoint(sender.PointToClient(new Point(e.X, e.Y)));

            Cells.ICellVirtual cellPosition = sender.GetCell(pointPosition);

            sender.ChangeDragCell(new CellContext(sender, pointPosition, cellPosition), e);
        }
Beispiel #2
0
 protected virtual void grid_DragLeave(GridVirtual sender, EventArgs e)
 {
     sender.ChangeDragCell(new CellContext(sender, Position.Empty, null), null);
 }
Beispiel #3
0
		protected virtual void grid_DragOver(GridVirtual sender, System.Windows.Forms.DragEventArgs e)
		{
			Position pointPosition = sender.PositionAtPoint(sender.PointToClient( new Point(e.X, e.Y) ));
			Cells.ICellVirtual cellPosition = sender.GetCell(pointPosition);

			CellContext cellContext = new CellContext(sender, pointPosition, cellPosition);
			sender.ChangeDragCell(cellContext, e);
			sender.Controller.OnDragOver(cellContext, e);
		}
Beispiel #4
0
		protected virtual void grid_DragLeave(GridVirtual sender, EventArgs e)
		{
			sender.ChangeDragCell(new CellContext(sender, Position.Empty, null), null);
		}