/// <summary>
 /// Add the Control to the specified grid. Consider that a Control can only be a child of one Container.
 /// </summary>
 private void AttachControl(GridVirtual grid)
 {
     mGrid          = grid;
     mLinkedControl = new LinkedControlValue(Control, Position.Empty);
     Control.Hide();
     grid.LinkedControls.Add(mLinkedControl);
     Control.Validated += new EventHandler(InnerControl_Validated);
     Control.KeyPress  += new KeyPressEventHandler(InnerControl_KeyPress);
 }
Exemplo n.º 2
0
		/// <summary>
		/// Add the Control to the specified grid. Consider that a Control can only be a child of one Container.
		/// </summary>
		private void AttachControl(GridVirtual grid)
		{
			mGrid = grid;
			mLinkedControl = new LinkedControlValue(Control, Position.Empty);
			Control.Hide();
			grid.LinkedControls.Add(mLinkedControl);
			Control.Validated += new EventHandler(InnerControl_Validated);
			Control.KeyPress += new KeyPressEventHandler(InnerControl_KeyPress);
		}
Exemplo n.º 3
0
        public override void BindToGrid(Grid p_grid, Position p_Position)
        {
            base.BindToGrid(p_grid, p_Position);

            LinkedControlValue linkedValue = new LinkedControlValue(mControl, Range.Start);
            linkedValue.ScrollMode = mScrollMode;
            linkedValue.UseCellBorder = mUseCellBorder;
            Grid.LinkedControls.Add(linkedValue);

            Grid.ArrangeLinkedControls();
        }
Exemplo n.º 4
0
        public override void BindToGrid(Grid p_grid, Position p_Position)
        {
            base.BindToGrid(p_grid, p_Position);

            LinkedControlValue linkedValue = new LinkedControlValue(mControl, Range.Start);
            linkedValue.ScrollMode = mScrollMode;
            linkedValue.UseCellBorder = mUseCellBorder;
            Grid.LinkedControls.Add(linkedValue);

            Grid.ArrangeLinkedControls();
        }
Exemplo n.º 5
0
        protected override void OnAddToGrid(EventArgs e)
        {
            base.OnAddToGrid(e);

            Grid.ScrollablePanel.ControlsRepository.Add(mControlGuid, mControl);

            LinkedControlValue linkedValue = new LinkedControlValue(Range.Start);

            linkedValue.ScrollMode    = mScrollMode;
            linkedValue.UseCellBorder = mUseCellBorder;
            Grid.LinkedControls.Add(mControl, linkedValue);

            Grid.ArrangeLinkedControls();
        }