EventArgs used by the FocusRowEnter
Inheritance: System.EventArgs
Esempio n. 1
0
        private void AttributeFocusedRowChanged(System.Object sender, SourceGrid.RowEventArgs e)
        {
            String AttributeCode = "";

            if (grdAttribute.SelectedDataRows.Length > 0)
            {
                AttributeCode = (String)((DataRowView)grdAttribute.SelectedDataRows[0]).Row[0];
            }

            PContactAttributeDetailTable tmpTable = (PContactAttributeDetailTable)FContactAttributesTable.Copy();

            for (int Counter = tmpTable.Rows.Count - 1; Counter >= 0; --Counter)
            {
                if ((String)tmpTable.Rows[Counter][PContactAttributeDetailTable.ColumnContactAttributeCodeId] != AttributeCode)
                {
                    tmpTable.Rows.RemoveAt(Counter);
                }
            }

            TDataCache.TMPartner.GetCacheableMailingTable(TCacheableMailingTablesEnum.ContactAttributeDetailList);

            tmpTable.DefaultView.AllowNew = false;
            grdDetail.DataSource          = new DevAge.ComponentModel.BoundDataView(tmpTable.DefaultView);
            grdDetail.AutoSizeCells();

            grdDetail.Selection.ResetSelection(true);
        }
Esempio n. 2
0
        private void GrdPartnerTypes_SpaceKeyPressed(System.Object Sender, SourceGrid.RowEventArgs e)
        {
            FLogic.ChangeCheckedStateForRow(e.Row);

            // I'm not entirely sure why...
            // but without this line a checkbox is not updated when it is first clicked with the mouse and then the spacebar is pressed
            grdPartnerTypes.Refresh();
        }
Esempio n. 3
0
        private void Clb_SpaceKeyPressed(System.Object Sender, SourceGrid.RowEventArgs e)
        {
            Int32 Row = e.Row;

            if (FDataView[Row][FCheckedColumn].GetType() != typeof(System.DBNull))
            {
                FDataView[Row][FCheckedColumn] = (System.Object)(!Convert.ToBoolean(FDataView[Row][FCheckedColumn]));
            }
        }
Esempio n. 4
0
		private void Selection_FocusRowEntered(object sender, RowEventArgs e)
		{
			btDown.Enabled = true;
			btUp.Enabled = true;
			btRemove.Enabled = true;
		}
        /// <summary>
        /// Event Handler for FocusRowEntered Event of the Grid
        /// </summary>
        /// <param name="ASender">The Grid</param>
        /// <param name="AEventArgs">RowEventArgs as specified by the Grid (use Row property to
        /// get the Grid Row for which this Event fires)
        /// </param>
        /// <returns>void</returns>
        private void DataGrid_FocusRowEntered(System.Object ASender, RowEventArgs AEventArgs)
        {
            FCurrentGridRow = AEventArgs.Row;

            FLogic.DetermineCurrentPartnerKey();

            //            MessageBox.Show("PartnerKey of newly selected Row: " + FLogic.PartnerKey.ToString());
            //            TLogging.Log("DataGrid_FocusRowEntered: PartnerKey of newly selected Row: " + FLogic.PartnerKey.ToString());

            // Update 'Partner Info' if this Panel is shown and this is not the 'Bank Details' tab
            UpdatePartnerInfoPanel();
        }
Esempio n. 6
0
 private void GrdResults_EnterKeyPressed(object Sender, SourceGrid.RowEventArgs e)
 {
     BtnOK_Click(this, null);
 }
 /// <summary>
 /// procedure grdFamilyMembers_ClickCell(Sender: System.Object; e: SourceGrid.CellContextEventArgs); Sets the ArRowbuttons (Demote,Promote). Disables or enables them. depending of selected FamilyID
 /// </summary>
 /// <returns>void</returns>
 private void DataGrid_FocusRowEntered(System.Object ASender, RowEventArgs AEventArgs)
 {
     this.SetArrowButtons();
 }
Esempio n. 8
0
 private void GrdPartnerTypes_EnterKeyPressed(System.Object Sender, SourceGrid.RowEventArgs e)
 {
     FLogic.ChangeCheckedStateForRow(e.Row);
 }
Esempio n. 9
0
        private void DataGrid_FocusRowEntered(System.Object ASender, RowEventArgs AEventArgs)
        {
            Int64 NewSiteKey;

            NewSiteKey = FLogic.DetermineCurrentSitePartnerKey(grdInstalledSites);

            // different SiteKey? If yes, retrieve the next available Partner Key for the Site
            if ((NewSiteKey != FSiteKey) || (!FDataGridRowEnteredRepeatedly))
            {
                FPartnerKey = FPartnerEditUIConnector.GetPartnerKeyForNewPartner(NewSiteKey);
                txtPartnerKey.PartnerKey = FPartnerKey;
                FSiteKey = NewSiteKey;
                FDataGridRowEnteredRepeatedly = true;
            }
        }
Esempio n. 10
0
 /// <summary>
 /// space key has been pressed
 /// </summary>
 /// <param name="e"></param>
 private void OnSpaceKeyPressed(RowEventArgs e)
 {
     // MessageBox.Show('OnEnterKeyPressed.  Row: ' + e.Row.ToString);
     if (SpaceKeyPressed != null)
     {
         SpaceKeyPressed(this, e);
     }
 }
Esempio n. 11
0
 /// <summary>
 /// delete key has been pressed
 /// </summary>
 /// <param name="e"></param>
 private void OnDeleteKeyPressed(RowEventArgs e)
 {
     // MessageBox.Show('OnDeleteKeyPressed.  Row: ' + e.Row.ToString);
     if (DeleteKeyPressed != null)
     {
         // prevent the Grid from deleting the row as well!
         this.DeleteRowsWithDeleteKey = false;
         DeleteKeyPressed(this, e);
     }
 }
Esempio n. 12
0
 /// <summary>
 /// key has been pressed
 /// </summary>
 /// <param name="e"></param>
 private void OnInsertKeyPressed(RowEventArgs e)
 {
     // MessageBox.Show('OnInsertKeyPressed.  Row: ' + e.Row.ToString);
     if (InsertKeyPressed != null)
     {
         InsertKeyPressed(this, e);
     }
 }