Exemple #1
0
 protected void UpdateRecord()
 {
     if (0 <= grdData.Row)
     {
         UpdateObject(grdData.GetRow(grdData.Row).DataRow);
     }
 }
Exemple #2
0
 private void mGrid_MouseMove(object sender, MouseEventArgs e)
 {
     if ((e.Button & System.Windows.Forms.MouseButtons.Left) != 0 &&
         !dragDropRectangle.IsEmpty &&
         !dragDropRectangle.Contains(e.X, e.Y))
     {
         var pos = mGrid.RowPositionFromPoint(dragDropStartPoint.X, dragDropStartPoint.Y);
         var row = mGrid.GetRow(pos);
         DraggingRow(this, new GridEXRowDragEventArgs(row));
     }
 }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="grid"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        public static GridEXRow GetRow(this GridEX grid, int x, int y)
        {
            GridArea area = grid.HitTest(x, y);

            if (area != GridArea.Cell)
            {
                return(null);
            }
            int position = grid.RowPositionFromPoint(x, y);

            return(grid.GetRow(position));
        }
 public void selectfiltered(GridEX grid)
 {
     grid.SelectionMode = Janus.Windows.GridEX.SelectionMode.MultipleSelection;
     Janus.Windows.GridEX.GridEXRow visiblerow;
     if (grid.RowCount > 0)
     {
         for (int i = 0; i < grid.RowCount; i++)
         {
             visiblerow = grid.GetRow(i);
             gridEX2.SelectedItems.Add(visiblerow.Position);
         }
     }
     this.textBox1.Text = gridEX2.RowCount.ToString() + " εγγραφές";
     grid.Select();
 }