protected void UpdateRecord() { if (0 <= grdData.Row) { UpdateObject(grdData.GetRow(grdData.Row).DataRow); } }
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)); } }
/// <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(); }