/// <summary>
        /// method On Cancel
        /// </summary>
        public void OnCancel()
        {
            // local
            bool clearRequired = (EditMode == EditModeEnum.Add);

            // if the value for HasParentListEditorHost is true
            if (HasParentListEditorHost)
            {
                // Cancel the current edit
                ParentListEditorHost.Cancel();

                // if the value for clearRequired is true
                if (clearRequired)
                {
                    // Set to -1
                    ListBox.SelectedIndex = -1;
                }

                // Enable or disable controls
                UIEnable();
            }
        }