Ejemplo n.º 1
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="AGrid"></param>
        /// <returns></returns>
        public String DetermineCurrentInterest(TSgrdDataGrid AGrid)
        {
            DataRowView[] TheDataRowViewArray;
            TheDataRowViewArray = AGrid.SelectedDataRowsAsDataRowView;

            // MessageBox.Show(TUCPartnerInterestsLogic.DetermineCurrentInterest.TheDataRowViewArray);
            FInterest = TheDataRowViewArray[0].Row[PPartnerInterestTable.GetInterestDBName()].ToString();
            return(FInterest);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// todoComment
        /// </summary>
        /// <param name="AGrid"></param>
        /// <param name="ARow"></param>
        /// <returns></returns>
        public String DetermineCurrentInterest(TSgrdDataGrid AGrid, Int32 ARow)
        {
            DataRowView TheDataRowView;

            TheDataRowView = (DataRowView)AGrid.Rows.IndexToDataSourceRow(ARow);
            try
            {
                FInterestRow    = TheDataRowView.Row;
                FInterest       = FInterestRow[PPartnerInterestTable.GetInterestDBName()].ToString();
                FInterestNumber = Convert.ToInt32(FInterestRow[PPartnerInterestTable.GetInterestNumberDBName()]);
            }
            catch (NullReferenceException)
            {
            }

            // no interests: to do?
            // MessageBox.Show('FInterest of currently selected Grid Row: ' + FInterest);
            return(FInterest);
        }