상속: System.EventArgs
예제 #1
0
        private void Clb_DoubleClickCell(System.Object Sender, SourceGrid.CellContextEventArgs e)
        {
            Int32 Row = e.CellContext.Position.Row;

            if (FDataView[Row][FCheckedColumn].GetType() != typeof(System.DBNull))
            {
                FDataView[Row][FCheckedColumn] = (System.Object)(!Convert.ToBoolean(FDataView[Row][FCheckedColumn]));
            }
        }
 private void GrdResult_DoubleClickCell(System.Object Sender, SourceGrid.CellContextEventArgs e)
 {
     BtnView_Click(this, null);
 }
예제 #3
0
            public override void OnDoubleClick(SourceGrid.CellContext sender, EventArgs e)
            {
                base.OnDoubleClick(sender, e);

                SourceGrid.Position ClickPosition;
                SourceGrid.CellContextEventArgs CellArgs;
                SourceGrid.ColumnEventArgs HeaderCellArgs;

                // MessageBox.Show('TSgrdDataGrid.OnDoubleClick');

                ClickPosition = sender.Grid.PositionAtPoint(sender.Grid.PointToClient(MousePosition));

                if (ClickPosition != SourceGrid.Position.Empty)
                {
                    if ((sender.Grid.FixedRows == 1) && (ClickPosition.Row == 0))
                    {
                        // DoubleClick occured in a HeaderCell > fire OnDoubleClickHeaderCell Event
                        HeaderCellArgs = new SourceGrid.ColumnEventArgs(ClickPosition.Column);
                        ((TSgrdDataGrid)(sender.Grid)).OnDoubleClickHeaderCell(HeaderCellArgs);
                    }
                    else
                    {
                        Position ClickPosWithoutHeader = new Position(ClickPosition.Row, ClickPosition.Column);

                        if (sender.Grid.FixedRows == 1)
                        {
                            ClickPosWithoutHeader = new Position(ClickPosition.Row - 1, ClickPosition.Column);
                        }

                        // DoubleClick occured in a Cell > fire OnDoubleClickCell Event
                        CellArgs =
                            new SourceGrid.CellContextEventArgs(new CellContext(sender.Grid, ClickPosWithoutHeader));
                        ((TSgrdDataGrid)(sender.Grid)).OnDoubleClickCell(CellArgs);
                    }
                }
            }
 /// <summary>
 /// When a Grid Row gets double-clicked the selected PERSON is opened in Partner Edit.
 /// </summary>
 /// <returns>void</returns>
 private void GrdFamilyMembers_DoubleClickCell(object Sender, CellContextEventArgs e)
 {
     if (!FDeadlineEditMode)
     {
         if (DataGridExist() && MembersInFamilyExist())
         {
             EditPerson(this, null);
         }
     }
 }
예제 #5
0
 /// <summary>
 /// double click on cell
 /// </summary>
 /// <param name="e"></param>
 private void OnDoubleClickCell(CellContextEventArgs e)
 {
     // MessageBox.Show('OnCellDoubleClick.  Column: ' + e.CellContext.Position.Column.ToString  + '; Row: ' + e.CellContext.Position.Row.ToString);
     if (DoubleClickCell != null)
     {
         DoubleClickCell(e.CellContext.Grid, e);
     }
 }