Esempio n. 1
0
        /// <summary>
        /// Clears the Editvalue if no longer in DataSource
        /// </summary>
        public static void CheckEditValueInAgainstDataSource(this LookUpEdit lookupEdit)
        {
            if (!lookupEdit.HasValue())
            {
                return;
            }

            if (!lookupEdit.IsEditValueInDataSource())
            {
                lookupEdit.EditValue = null;
            }
        }